1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp Tue Feb 23 23:13:23 2010 -0500 1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp Tue Feb 23 23:14:34 2010 -0500 1.3 @@ -299,10 +299,6 @@ 1.4 1.5 assert(Heap_lock->owned_by_self(), "Locking discipline."); 1.6 1.7 - if (G1SteadyStateUsed < 50) { 1.8 - vm_exit_during_initialization("G1SteadyStateUsed must be at least 50%."); 1.9 - } 1.10 - 1.11 initialize_gc_policy_counters(); 1.12 1.13 if (G1Gen) { 1.14 @@ -1425,7 +1421,7 @@ 1.15 record_concurrent_mark_init_end_pre(0.0); 1.16 1.17 size_t min_used_targ = 1.18 - (_g1->capacity() / 100) * (G1SteadyStateUsed - G1SteadyStateUsedDelta); 1.19 + (_g1->capacity() / 100) * InitiatingHeapOccupancyPercent; 1.20 1.21 if (cur_used_bytes > min_used_targ) { 1.22 if (cur_used_bytes <= _prev_collection_pause_used_at_end_bytes) { 1.23 @@ -2618,13 +2614,6 @@ 1.24 G1CollectorPolicy_BestRegionsFirst::should_do_collection_pause(size_t 1.25 word_size) { 1.26 assert(_g1->regions_accounted_for(), "Region leakage!"); 1.27 - // Initiate a pause when we reach the steady-state "used" target. 1.28 - size_t used_hard = (_g1->capacity() / 100) * G1SteadyStateUsed; 1.29 - size_t used_soft = 1.30 - MAX2((_g1->capacity() / 100) * (G1SteadyStateUsed - G1SteadyStateUsedDelta), 1.31 - used_hard/2); 1.32 - size_t used = _g1->used(); 1.33 - 1.34 double max_pause_time_ms = _mmu_tracker->max_gc_time() * 1000.0; 1.35 1.36 size_t young_list_length = _g1->young_list_length();