src/hotspot/share/oops/instanceKlass.hpp
changeset 48614 c39ae979ca35
parent 47668 fc4cfca10556
child 48637 7bba05746c44
--- a/src/hotspot/share/oops/instanceKlass.hpp	Mon Jan 08 13:13:05 2018 +0100
+++ b/src/hotspot/share/oops/instanceKlass.hpp	Mon Jan 08 13:22:05 2018 +0100
@@ -640,6 +640,11 @@
     return is_anonymous() ? java_mirror() : class_loader();
   }
 
+  // Load the klass_holder as a phantom. This is useful when a weak Klass
+  // pointer has been "peeked" and then must be kept alive before it may
+  // be used safely.
+  oop klass_holder_phantom();
+
   bool is_contended() const                {
     return (_misc_flags & _misc_is_contended) != 0;
   }