equal
deleted
inserted
replaced
654 |
654 |
655 virtual void metaspace_pointers_do(MetaspaceClosure* iter); |
655 virtual void metaspace_pointers_do(MetaspaceClosure* iter); |
656 virtual MetaspaceObj::Type type() const { return ClassType; } |
656 virtual MetaspaceObj::Type type() const { return ClassType; } |
657 |
657 |
658 // Iff the class loader (or mirror for unsafe anonymous classes) is alive the |
658 // Iff the class loader (or mirror for unsafe anonymous classes) is alive the |
659 // Klass is considered alive. Has already been marked as unloading. |
659 // Klass is considered alive. This is safe to call before the CLD is marked as |
660 bool is_loader_alive() const { return !class_loader_data()->is_unloading(); } |
660 // unloading, and hence during concurrent class unloading. |
|
661 bool is_loader_alive() const { return class_loader_data()->is_alive(); } |
661 |
662 |
662 // Load the klass's holder as a phantom. This is useful when a weak Klass |
663 // Load the klass's holder as a phantom. This is useful when a weak Klass |
663 // pointer has been "peeked" and then must be kept alive before it may |
664 // pointer has been "peeked" and then must be kept alive before it may |
664 // be used safely. |
665 // be used safely. |
665 oop holder_phantom() const; |
666 oop holder_phantom() const; |