mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8028787: tmtools/jstat/gcoldcapacity/jstat_gcoldcapacity02 fails nsk.share.Failure: OGC < OGCMN in RT_Baseline
Passing the min and max size of the generation into the counter instead of using the space to estimate sizes. Reviewed-by: stefank, tschatzl
This commit is contained in:
parent
663618a6a1
commit
204425b78f
9 changed files with 21 additions and 11 deletions
|
@ -214,9 +214,11 @@ DefNewGeneration::DefNewGeneration(ReservedSpace rs,
|
|||
_max_eden_size = size - (2*_max_survivor_size);
|
||||
|
||||
// allocate the performance counters
|
||||
GenCollectorPolicy* gcp = (GenCollectorPolicy*) GenCollectedHeap::heap()->collector_policy();
|
||||
|
||||
// Generation counters -- generation 0, 3 subspaces
|
||||
_gen_counters = new GenerationCounters("new", 0, 3, &_virtual_space);
|
||||
_gen_counters = new GenerationCounters("new", 0, 3,
|
||||
gcp->min_young_size(), gcp->max_young_size(), &_virtual_space);
|
||||
_gc_counters = new CollectorCounters(policy, 0);
|
||||
|
||||
_eden_counters = new CSpaceCounters("eden", 0, _max_eden_size, _eden_space,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue