mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-11 14:11:36 +00:00
8249801: Shenandoah: Clear soft-refs on requested GC cycle
Reviewed-by: shade
This commit is contained in:
parent
a20c31865d
commit
006d0bcec1
@ -174,8 +174,8 @@ void ShenandoahControlThread::run_service() {
|
||||
}
|
||||
|
||||
// Blow all soft references on this cycle, if handling allocation failure,
|
||||
// or we are requested to do so unconditionally.
|
||||
if (alloc_failure_pending || ShenandoahAlwaysClearSoftRefs) {
|
||||
// either implicit or explicit GC request, or we are requested to do so unconditionally.
|
||||
if (alloc_failure_pending || implicit_gc_requested || explicit_gc_requested || ShenandoahAlwaysClearSoftRefs) {
|
||||
heap->soft_ref_policy()->set_should_clear_all_soft_refs(true);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user