--- a/hotspot/src/share/vm/memory/tenuredGeneration.cpp Wed Aug 27 09:22:22 2014 +0000
+++ b/hotspot/src/share/vm/memory/tenuredGeneration.cpp Wed Aug 27 09:47:06 2014 +0200
@@ -53,9 +53,11 @@
// initialize performance counters
const char* gen_name = "old";
+ GenCollectorPolicy* gcp = (GenCollectorPolicy*) GenCollectedHeap::heap()->collector_policy();
// Generation Counters -- generation 1, 1 subspace
- _gen_counters = new GenerationCounters(gen_name, 1, 1, &_virtual_space);
+ _gen_counters = new GenerationCounters(gen_name, 1, 1,
+ gcp->min_old_size(), gcp->max_old_size(), &_virtual_space);
_gc_counters = new CollectorCounters("MSC", 1);