--- a/src/hotspot/share/prims/whitebox.cpp Thu Feb 22 18:35:40 2018 +0100
+++ b/src/hotspot/share/prims/whitebox.cpp Thu Feb 22 18:36:07 2018 +0100
@@ -1219,12 +1219,12 @@
WB_END
WB_ENTRY(void, WB_FullGC(JNIEnv* env, jobject o))
- Universe::heap()->collector_policy()->set_should_clear_all_soft_refs(true);
+ Universe::heap()->soft_ref_policy()->set_should_clear_all_soft_refs(true);
Universe::heap()->collect(GCCause::_wb_full_gc);
#if INCLUDE_ALL_GCS
if (UseG1GC) {
// Needs to be cleared explicitly for G1
- Universe::heap()->collector_policy()->set_should_clear_all_soft_refs(false);
+ Universe::heap()->soft_ref_policy()->set_should_clear_all_soft_refs(false);
}
#endif // INCLUDE_ALL_GCS
WB_END