src/hotspot/share/oops/klass.hpp
changeset 51444 3e5d28e6de32
parent 51329 9c68699bebe5
child 51491 187c84a5efe1
equal deleted inserted replaced
51443:cdffba164671 51444:3e5d28e6de32
   652   JFR_ONLY(DEFINE_TRACE_ID_METHODS;)
   652   JFR_ONLY(DEFINE_TRACE_ID_METHODS;)
   653 
   653 
   654   virtual void metaspace_pointers_do(MetaspaceClosure* iter);
   654   virtual void metaspace_pointers_do(MetaspaceClosure* iter);
   655   virtual MetaspaceObj::Type type() const { return ClassType; }
   655   virtual MetaspaceObj::Type type() const { return ClassType; }
   656 
   656 
   657   // Iff the class loader (or mirror for anonymous classes) is alive the
   657   // Iff the class loader (or mirror for unsafe anonymous classes) is alive the
   658   // Klass is considered alive.  Has already been marked as unloading.
   658   // Klass is considered alive.  Has already been marked as unloading.
   659   bool is_loader_alive() const { return !class_loader_data()->is_unloading(); }
   659   bool is_loader_alive() const { return !class_loader_data()->is_unloading(); }
   660 
   660 
   661   // Load the klass's holder as a phantom. This is useful when a weak Klass
   661   // Load the klass's holder as a phantom. This is useful when a weak Klass
   662   // pointer has been "peeked" and then must be kept alive before it may
   662   // pointer has been "peeked" and then must be kept alive before it may