< prev index next >
src/hotspot/share/gc/z/zUnload.cpp
virtual bool is_unloading(CompiledMethod* method) const {
nmethod* const nm = method->as_nmethod();
ZReentrantLock* const lock = ZNMethod::lock_for_nmethod(nm);
ZLocker<ZReentrantLock> locker(lock);
ZIsUnloadingOopClosure cl;
! nm->oops_do(&cl, true /* allow_zombie */);
return cl.is_unloading();
}
};
class ZCompiledICProtectionBehaviour : public CompiledICProtectionBehaviour {
virtual bool is_unloading(CompiledMethod* method) const {
nmethod* const nm = method->as_nmethod();
ZReentrantLock* const lock = ZNMethod::lock_for_nmethod(nm);
ZLocker<ZReentrantLock> locker(lock);
ZIsUnloadingOopClosure cl;
! ZNMethod::nmethod_oops_do(nm, &cl);
return cl.is_unloading();
}
};
class ZCompiledICProtectionBehaviour : public CompiledICProtectionBehaviour {
< prev index next >