8256415: Shenandoah: Should evacuate/update codecache concurrently when class unloading is off

Reviewed-by: rkennke
This commit is contained in:
Zhengyu Gu 2020-11-18 12:59:17 +00:00
parent f504f419d3
commit eab170c0af
10 changed files with 79 additions and 114 deletions

View file

@ -420,7 +420,8 @@ void ShenandoahControlThread::service_concurrent_normal_cycle(GCCause::Cause cau
}
// Perform concurrent class unloading
if (heap->is_concurrent_weak_root_in_progress()) {
if (heap->is_concurrent_weak_root_in_progress() &&
ShenandoahConcurrentRoots::should_do_concurrent_class_unloading()) {
heap->entry_class_unloading();
}