src/hotspot/share/gc/serial/tenuredGeneration.cpp
changeset 54678 93f09ca4a7f8
parent 53726 5ef581e59d91
child 58041 d8902e9c307c
equal deleted inserted replaced
54677:beca9f8524c1 54678:93f09ca4a7f8
    43 #include "gc/cms/parOopClosures.hpp"
    43 #include "gc/cms/parOopClosures.hpp"
    44 #endif
    44 #endif
    45 
    45 
    46 TenuredGeneration::TenuredGeneration(ReservedSpace rs,
    46 TenuredGeneration::TenuredGeneration(ReservedSpace rs,
    47                                      size_t initial_byte_size,
    47                                      size_t initial_byte_size,
       
    48                                      size_t min_byte_size,
       
    49                                      size_t max_byte_size,
    48                                      CardTableRS* remset) :
    50                                      CardTableRS* remset) :
    49   CardGeneration(rs, initial_byte_size, remset)
    51   CardGeneration(rs, initial_byte_size, remset)
    50 {
    52 {
    51   HeapWord* bottom = (HeapWord*) _virtual_space.low();
    53   HeapWord* bottom = (HeapWord*) _virtual_space.low();
    52   HeapWord* end    = (HeapWord*) _virtual_space.high();
    54   HeapWord* end    = (HeapWord*) _virtual_space.high();
    58   _gc_stats = new GCStats();
    60   _gc_stats = new GCStats();
    59 
    61 
    60   // initialize performance counters
    62   // initialize performance counters
    61 
    63 
    62   const char* gen_name = "old";
    64   const char* gen_name = "old";
    63   GenCollectorPolicy* gcp = GenCollectedHeap::heap()->gen_policy();
       
    64   // Generation Counters -- generation 1, 1 subspace
    65   // Generation Counters -- generation 1, 1 subspace
    65   _gen_counters = new GenerationCounters(gen_name, 1, 1,
    66   _gen_counters = new GenerationCounters(gen_name, 1, 1,
    66       gcp->min_old_size(), gcp->max_old_size(), &_virtual_space);
    67       min_byte_size, max_byte_size, &_virtual_space);
    67 
    68 
    68   _gc_counters = new CollectorCounters("Serial full collection pauses", 1);
    69   _gc_counters = new CollectorCounters("Serial full collection pauses", 1);
    69 
    70 
    70   _space_counters = new CSpaceCounters(gen_name, 0,
    71   _space_counters = new CSpaceCounters(gen_name, 0,
    71                                        _virtual_space.reserved_size(),
    72                                        _virtual_space.reserved_size(),