Skip to content
Permalink
Browse files

8249801: Shenandoah: Clear soft-refs on requested GC cycle

Reviewed-by: shade
  • Loading branch information
rkennke committed Jul 21, 2020
1 parent a20c318 commit 006d0bcec1bf04b260037cfae0ac1c2385bb10e3
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/hotspot/share/gc/shenandoah/shenandoahControlThread.cpp
@@ -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);
}

0 comments on commit 006d0bc

Please sign in to comment.
You can’t perform that action at this time.