src/hotspot/share/gc/z/zUnload.cpp
changeset 54567 224515275cf9
parent 53921 a590b6107ab3
child 54623 1126f0607c70
equal deleted inserted replaced
54566:4224f26b2e7f 54567:224515275cf9
    69   virtual bool is_unloading(CompiledMethod* method) const {
    69   virtual bool is_unloading(CompiledMethod* method) const {
    70     nmethod* const nm = method->as_nmethod();
    70     nmethod* const nm = method->as_nmethod();
    71     ZReentrantLock* const lock = ZNMethod::lock_for_nmethod(nm);
    71     ZReentrantLock* const lock = ZNMethod::lock_for_nmethod(nm);
    72     ZLocker<ZReentrantLock> locker(lock);
    72     ZLocker<ZReentrantLock> locker(lock);
    73     ZIsUnloadingOopClosure cl;
    73     ZIsUnloadingOopClosure cl;
    74     nm->oops_do(&cl, true /* allow_zombie */);
    74     ZNMethod::nmethod_oops_do(nm, &cl);
    75     return cl.is_unloading();
    75     return cl.is_unloading();
    76   }
    76   }
    77 };
    77 };
    78 
    78 
    79 class ZCompiledICProtectionBehaviour : public CompiledICProtectionBehaviour {
    79 class ZCompiledICProtectionBehaviour : public CompiledICProtectionBehaviour {