src/hotspot/share/oops/instanceKlass.hpp
changeset 48637 7bba05746c44
parent 48555 9c56c953d8db
parent 48614 c39ae979ca35
child 48873 9536c39ac6de
--- a/src/hotspot/share/oops/instanceKlass.hpp	Fri Jan 19 17:11:52 2018 +0100
+++ b/src/hotspot/share/oops/instanceKlass.hpp	Sat Jan 13 02:56:22 2018 +0100
@@ -645,6 +645,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;
   }