--- a/src/hotspot/share/gc/g1/heapRegion.cpp Mon Mar 04 11:49:16 2019 +0100
+++ b/src/hotspot/share/gc/g1/heapRegion.cpp Mon Mar 04 11:49:16 2019 +0100
@@ -144,13 +144,13 @@
// GC efficiency is the ratio of how much space would be
// reclaimed over how long we predict it would take to reclaim it.
G1CollectedHeap* g1h = G1CollectedHeap::heap();
- G1Policy* g1p = g1h->g1_policy();
+ G1Policy* policy = g1h->policy();
// Retrieve a prediction of the elapsed time for this region for
// a mixed gc because the region will only be evacuated during a
// mixed gc.
double region_elapsed_time_ms =
- g1p->predict_region_elapsed_time_ms(this, false /* for_young_gc */);
+ policy->predict_region_elapsed_time_ms(this, false /* for_young_gc */);
_gc_efficiency = (double) reclaimable_bytes() / region_elapsed_time_ms;
}