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 */); + ZNMethod::nmethod_oops_do(nm, &cl); return cl.is_unloading(); } }; class ZCompiledICProtectionBehaviour : public CompiledICProtectionBehaviour {