src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp

changeset 1377
2c79770d1f6e
parent 1371
e1fdf4fd34dc
child 1478
fc06cd9b42c7
     1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp	Wed Sep 02 00:04:29 2009 -0700
     1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp	Thu Jul 30 16:22:58 2009 -0400
     1.3 @@ -201,6 +201,11 @@
     1.4    _survivors_age_table(true)
     1.5  
     1.6  {
     1.7 +  // Set up the region size and associated fields. Given that the
     1.8 +  // policy is created before the heap, we have to set this up here,
     1.9 +  // so it's done as soon as possible.
    1.10 +  HeapRegion::setup_heap_region_size(Arguments::min_heap_size());
    1.11 +
    1.12    _recent_prev_end_times_for_all_gcs_sec->add(os::elapsedTime());
    1.13    _prev_collection_pause_end_ms = os::elapsedTime() * 1000.0;
    1.14  

mercurial