hotspot/src/share/vm/memory/tenuredGeneration.cpp
changeset 26324 6b9c12e15535
parent 22551 9bf46d16dcc6
child 27898 813ad96387b3
--- 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);