--- old/src/hotspot/share/gc/parallel/psMarkSweep.cpp 2018-02-20 23:17:45.752789983 +0100 +++ new/src/hotspot/share/gc/parallel/psMarkSweep.cpp 2018-02-20 23:17:45.532782461 +0100 @@ -46,6 +46,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 "logging/log.hpp" @@ -98,7 +99,7 @@ } const bool clear_all_soft_refs = - heap->collector_policy()->should_clear_all_soft_refs(); + heap->soft_ref_policy()->should_clear_all_soft_refs(); uint count = maximum_heap_compaction ? 1 : MarkSweepAlwaysCompactCount; UIntFlagSetting flag_setting(MarkSweepAlwaysCompactCount, count); @@ -125,8 +126,8 @@ PSAdaptiveSizePolicy* size_policy = heap->size_policy(); // The scope of casr should end after code that can change - // CollectorPolicy::_should_clear_all_soft_refs. - ClearedAllSoftRefs casr(clear_all_softrefs, heap->collector_policy()); + // SoftRefPolicy::_should_clear_all_soft_refs. + ClearedAllSoftRefs casr(clear_all_softrefs, heap->soft_ref_policy()); PSYoungGen* young_gen = heap->young_gen(); PSOldGen* old_gen = heap->old_gen(); @@ -320,7 +321,7 @@ max_eden_size, true /* full gc*/, gc_cause, - heap->collector_policy()); + heap->soft_ref_policy()); size_policy->decay_supplemental_growth(true /* full gc*/);