src/hotspot/share/gc/shared/genCollectedHeap.cpp
changeset 51332 c25572739e7c
parent 50882 80abf702eed8
child 51598 c88019b32bc4
equal deleted inserted replaced
51331:7939b3c4e408 51332:c25572739e7c
    71 GenCollectedHeap::GenCollectedHeap(GenCollectorPolicy *policy,
    71 GenCollectedHeap::GenCollectedHeap(GenCollectorPolicy *policy,
    72                                    Generation::Name young,
    72                                    Generation::Name young,
    73                                    Generation::Name old,
    73                                    Generation::Name old,
    74                                    const char* policy_counters_name) :
    74                                    const char* policy_counters_name) :
    75   CollectedHeap(),
    75   CollectedHeap(),
    76   _rem_set(NULL),
       
    77   _young_gen_spec(new GenerationSpec(young,
    76   _young_gen_spec(new GenerationSpec(young,
    78                                      policy->initial_young_size(),
    77                                      policy->initial_young_size(),
    79                                      policy->max_young_size(),
    78                                      policy->max_young_size(),
    80                                      policy->gen_alignment())),
    79                                      policy->gen_alignment())),
    81   _old_gen_spec(new GenerationSpec(old,
    80   _old_gen_spec(new GenerationSpec(old,
    82                                    policy->initial_old_size(),
    81                                    policy->initial_old_size(),
    83                                    policy->max_old_size(),
    82                                    policy->max_old_size(),
    84                                    policy->gen_alignment())),
    83                                    policy->gen_alignment())),
       
    84   _rem_set(NULL),
    85   _gen_policy(policy),
    85   _gen_policy(policy),
    86   _soft_ref_gen_policy(),
    86   _soft_ref_gen_policy(),
    87   _gc_policy_counters(new GCPolicyCounters(policy_counters_name, 2, 2)),
    87   _gc_policy_counters(new GCPolicyCounters(policy_counters_name, 2, 2)),
    88   _process_strong_tasks(new SubTasksDone(GCH_PS_NumElements)),
    88   _full_collections_completed(0),
    89   _full_collections_completed(0) {
    89   _process_strong_tasks(new SubTasksDone(GCH_PS_NumElements)) {
    90 }
    90 }
    91 
    91 
    92 jint GenCollectedHeap::initialize() {
    92 jint GenCollectedHeap::initialize() {
    93   // While there are no constraints in the GC code that HeapWordSize
    93   // While there are no constraints in the GC code that HeapWordSize
    94   // be any particular value, there are multiple other areas in the
    94   // be any particular value, there are multiple other areas in the