--- old/src/hotspot/share/gc/shared/vmGCOperations.cpp 2018-02-20 23:17:54.193078503 +0100 +++ new/src/hotspot/share/gc/shared/vmGCOperations.cpp 2018-02-20 23:17:53.989071529 +0100 @@ -29,6 +29,7 @@ #include "gc/shared/gcId.hpp" #include "gc/shared/gcLocker.inline.hpp" #include "gc/shared/genCollectedHeap.hpp" +#include "gc/shared/softRefPolicy.hpp" #include "gc/shared/vmGCOperations.hpp" #include "interpreter/oopMapCache.hpp" #include "logging/log.hpp" @@ -46,7 +47,7 @@ VM_GC_Operation::~VM_GC_Operation() { CollectedHeap* ch = Universe::heap(); - ch->collector_policy()->set_all_soft_refs_clear(false); + ch->soft_ref_policy()->set_all_soft_refs_clear(false); } // The same dtrace probe can't be inserted in two different files, so we