--- old/src/hotspot/share/gc/parallel/psScavenge.cpp 2018-02-20 23:17:46.444813638 +0100 +++ new/src/hotspot/share/gc/parallel/psScavenge.cpp 2018-02-20 23:17:46.232806391 +0100 @@ -33,7 +33,6 @@ #include "gc/parallel/psParallelCompact.inline.hpp" #include "gc/parallel/psScavenge.inline.hpp" #include "gc/parallel/psTasks.hpp" -#include "gc/shared/collectorPolicy.hpp" #include "gc/shared/gcCause.hpp" #include "gc/shared/gcHeapSummary.hpp" #include "gc/shared/gcId.hpp" @@ -44,6 +43,7 @@ #include "gc/shared/isGCActiveMark.hpp" #include "gc/shared/referencePolicy.hpp" #include "gc/shared/referenceProcessor.hpp" +#include "gc/shared/softRefPolicy.hpp" #include "gc/shared/spaceDecorator.hpp" #include "gc/shared/weakProcessor.hpp" #include "memory/resourceArea.hpp" @@ -228,7 +228,7 @@ if (need_full_gc) { GCCauseSetter gccs(heap, GCCause::_adaptive_size_policy); - CollectorPolicy* cp = heap->collector_policy(); + SoftRefPolicy* cp = heap->soft_ref_policy(); const bool clear_all_softrefs = cp->should_clear_all_soft_refs(); if (UseParallelOldGC) { @@ -569,7 +569,7 @@ max_eden_size, false /* not full gc*/, gc_cause, - heap->collector_policy()); + heap->soft_ref_policy()); size_policy->decay_supplemental_growth(false /* not full gc*/); }