--- old/src/hotspot/share/gc/shared/adaptiveSizePolicy.cpp 2018-02-21 18:45:33.424830266 +0100 +++ new/src/hotspot/share/gc/shared/adaptiveSizePolicy.cpp 2018-02-21 18:45:33.240823997 +0100 @@ -27,10 +27,12 @@ #include "gc/shared/collectorPolicy.hpp" #include "gc/shared/gcCause.hpp" #include "gc/shared/gcUtil.inline.hpp" +#include "gc/shared/softRefPolicy.hpp" #include "gc/shared/workgroup.hpp" #include "logging/log.hpp" #include "runtime/timer.hpp" #include "utilities/ostream.hpp" + elapsedTimer AdaptiveSizePolicy::_minor_timer; elapsedTimer AdaptiveSizePolicy::_major_timer; bool AdaptiveSizePolicy::_debug_perturbation = false; @@ -409,7 +411,7 @@ size_t max_eden_size, bool is_full_gc, GCCause::Cause gc_cause, - CollectorPolicy* collector_policy) { + SoftRefPolicy* soft_ref_policy) { // Ignore explicit GC's. Exiting here does not set the flag and // does not reset the count. Updating of the averages for system @@ -506,7 +508,7 @@ // The clearing will be done on the next GC. bool near_limit = gc_overhead_limit_near(); if (near_limit) { - collector_policy->set_should_clear_all_soft_refs(true); + soft_ref_policy->set_should_clear_all_soft_refs(true); log_trace(gc, ergo)("Nearing GC overhead limit, will be clearing all SoftReference"); } }