1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp Fri Feb 15 13:27:21 2013 -0800 1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp Thu Feb 21 23:58:05 2013 -0800 1.3 @@ -267,7 +267,15 @@ 1.4 double max_gc_time = (double) MaxGCPauseMillis / 1000.0; 1.5 double time_slice = (double) GCPauseIntervalMillis / 1000.0; 1.6 _mmu_tracker = new G1MMUTrackerQueue(time_slice, max_gc_time); 1.7 - _sigma = (double) G1ConfidencePercent / 100.0; 1.8 + 1.9 + uintx confidence_perc = G1ConfidencePercent; 1.10 + // Put an artificial ceiling on this so that it's not set to a silly value. 1.11 + if (confidence_perc > 100) { 1.12 + confidence_perc = 100; 1.13 + warning("G1ConfidencePercent is set to a value that is too large, " 1.14 + "it's been updated to %u", confidence_perc); 1.15 + } 1.16 + _sigma = (double) confidence_perc / 100.0; 1.17 1.18 // start conservatively (around 50ms is about right) 1.19 _concurrent_mark_remark_times_ms->add(0.05);