diff -r c8e4dc1b9e39 -r 8f004146e407 src/hotspot/share/gc/shared/vmGCOperations.cpp --- a/src/hotspot/share/gc/shared/vmGCOperations.cpp Thu Feb 22 18:35:40 2018 +0100 +++ b/src/hotspot/share/gc/shared/vmGCOperations.cpp Thu Feb 22 18:36:07 2018 +0100 @@ -46,7 +46,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