changeset 48448:6a5e7a575830

8193933: Export ClassLoaderData claim state to support interleaved object traversal Reviewed-by: coleenp, hseigel
author mgronlun
date Mon, 15 Jan 2018 13:09:50 +0100
parents b329894ee5a2
children 4899ee4eb332
files src/hotspot/share/classfile/classLoaderData.hpp
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/classfile/classLoaderData.hpp	Mon Jan 15 09:21:49 2018 +0100
+++ b/src/hotspot/share/classfile/classLoaderData.hpp	Mon Jan 15 13:09:50 2018 +0100
@@ -279,11 +279,6 @@
   ClassLoaderData(Handle h_class_loader, bool is_anonymous, Dependencies dependencies);
   ~ClassLoaderData();
 
-  // GC interface.
-  void clear_claimed()          { _claimed = 0; }
-  bool claimed() const          { return _claimed == 1; }
-  bool claim();
-
   // The CLD are not placed in the Heap, so the Card Table or
   // the Mod Union Table can't be used to mark when CLD have modified oops.
   // The CT and MUT bits saves this information for the whole class loader data.
@@ -315,6 +310,10 @@
 
   Dictionary* create_dictionary();
  public:
+  // GC interface.
+  void clear_claimed() { _claimed = 0; }
+  bool claimed() const { return _claimed == 1; }
+  bool claim();
 
   bool is_alive(BoolObjectClosure* is_alive_closure) const;