mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8256415: Shenandoah: Should evacuate/update codecache concurrently when class unloading is off
Reviewed-by: rkennke
This commit is contained in:
parent
f504f419d3
commit
eab170c0af
10 changed files with 79 additions and 114 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue