--- old/src/share/vm/gc/g1/g1CollectedHeap_ext.cpp 2017-08-03 16:11:04.857643213 -0700 +++ new/src/share/vm/gc/g1/g1CollectedHeap_ext.cpp 2017-08-03 16:11:04.741643217 -0700 @@ -28,6 +28,8 @@ #include "gc/g1/g1ParScanThreadState.hpp" #include "gc/g1/heapRegion.inline.hpp" +class STWGCTimer; + bool G1CollectedHeap::copy_allocation_context_stats(const jint* contexts, jlong* totals, jbyte* accuracy, @@ -40,6 +42,6 @@ return new HeapRegion(hrs_index, bot(), mr); } -G1Policy* G1CollectedHeap::create_g1_policy() { - return new G1DefaultPolicy(); +G1Policy* G1CollectedHeap::create_g1_policy(STWGCTimer* gc_timer) { + return new G1DefaultPolicy(gc_timer); }