--- a/hotspot/src/share/vm/gc/serial/defNewGeneration.cpp Thu Apr 21 09:08:33 2016 +0200
+++ b/hotspot/src/share/vm/gc/serial/defNewGeneration.cpp Thu Apr 21 10:18:50 2016 +0200
@@ -564,7 +564,7 @@
void DefNewGeneration::adjust_desired_tenuring_threshold() {
// Set the desired survivor size to half the real survivor space
- GCPolicyCounters* gc_counters = GenCollectedHeap::heap()->collector_policy()->counters();
+ GCPolicyCounters* gc_counters = GenCollectedHeap::heap()->gen_policy()->counters();
_tenuring_threshold =
age_table()->compute_tenuring_threshold(to()->capacity()/HeapWordSize, gc_counters);
}
@@ -945,7 +945,7 @@
// update the generation and space performance counters
update_counters();
- gch->collector_policy()->counters()->update_counters();
+ gch->gen_policy()->counters()->update_counters();
}
void DefNewGeneration::record_spaces_top() {