src/hotspot/share/oops/instanceKlass.hpp
changeset 48614 c39ae979ca35
parent 47668 fc4cfca10556
child 48637 7bba05746c44
equal deleted inserted replaced
48613:d8bdf14c4f1e 48614:c39ae979ca35
   638   // in places where the metadata is stored in other places, like nmethods
   638   // in places where the metadata is stored in other places, like nmethods
   639   oop klass_holder() const {
   639   oop klass_holder() const {
   640     return is_anonymous() ? java_mirror() : class_loader();
   640     return is_anonymous() ? java_mirror() : class_loader();
   641   }
   641   }
   642 
   642 
       
   643   // Load the klass_holder as a phantom. This is useful when a weak Klass
       
   644   // pointer has been "peeked" and then must be kept alive before it may
       
   645   // be used safely.
       
   646   oop klass_holder_phantom();
       
   647 
   643   bool is_contended() const                {
   648   bool is_contended() const                {
   644     return (_misc_flags & _misc_is_contended) != 0;
   649     return (_misc_flags & _misc_is_contended) != 0;
   645   }
   650   }
   646   void set_is_contended(bool value)        {
   651   void set_is_contended(bool value)        {
   647     if (value) {
   652     if (value) {