8245288: Shenandoah: move up ShenandoahEvacOOM scope for code root processing during concurrent class unloading

Reviewed-by: shade
This commit is contained in:
Zhengyu Gu 2020-05-20 17:45:07 -04:00
parent 5b3c33ac67
commit 3802524153

View File

@ -273,7 +273,6 @@ public:
// Heal oops and disarm
if (_bs->is_armed(nm)) {
ShenandoahEvacOOMScope oom_evac_scope;
ShenandoahNMethod::heal_nmethod_metadata(nm_data);
_bs->disarm(nm);
}
@ -312,6 +311,7 @@ public:
virtual void work(uint worker_id) {
ICRefillVerifierMark mark(_verifier);
ShenandoahEvacOOMScope evac_scope;
_iterator.nmethods_do(&_cl);
}