--- old/src/hotspot/share/gc/g1/g1YoungRemSetSamplingThread.cpp 2019-02-27 11:07:54.718392317 +0100 +++ new/src/hotspot/share/gc/g1/g1YoungRemSetSamplingThread.cpp 2019-02-27 11:07:54.449384138 +0100 @@ -163,7 +163,7 @@ void G1YoungRemSetSamplingThread::sample_young_list_rs_lengths() { SuspendibleThreadSetJoiner sts; G1CollectedHeap* g1h = G1CollectedHeap::heap(); - G1Policy* g1p = g1h->g1_policy(); + G1Policy* g1p = g1h->policy(); if (g1p->adaptive_young_list_length()) { G1YoungRemSetSamplingClosure cl(&sts);