comparison src/hotspot/share/gc/z/zUnload.cpp @ 54567:224515275cf9

8219718: ZGC: Make nmethod entry barriers and nmethod::is_unloading use ZNMethodDataOops Reviewed-by: pliden, stefank
author eosterlund
date Wed, 17 Apr 2019 12:41:33 +0200
parents a590b6107ab3
children 1126f0607c70
comparison
equal deleted inserted replaced
2:69dbef21875b 3:b3c350d239d9
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 {