comparison src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp @ 8094:f1fb03a251e9

8008546: Wrong G1ConfidencePercent results in GUARANTEE(VARIANCE() > -1.0) FAILED Reviewed-by: brutisso, johnc Contributed-by: vladimir.kempik@oracle.com
author poonam
date Thu, 21 Feb 2013 23:58:05 -0800
parents 37f7535e5f18
children 27714220e50e
comparison
equal deleted inserted replaced
8054:d5e12e7d2f71 8094:f1fb03a251e9
265 } 265 }
266 266
267 double max_gc_time = (double) MaxGCPauseMillis / 1000.0; 267 double max_gc_time = (double) MaxGCPauseMillis / 1000.0;
268 double time_slice = (double) GCPauseIntervalMillis / 1000.0; 268 double time_slice = (double) GCPauseIntervalMillis / 1000.0;
269 _mmu_tracker = new G1MMUTrackerQueue(time_slice, max_gc_time); 269 _mmu_tracker = new G1MMUTrackerQueue(time_slice, max_gc_time);
270 _sigma = (double) G1ConfidencePercent / 100.0; 270
271 uintx confidence_perc = G1ConfidencePercent;
272 // Put an artificial ceiling on this so that it's not set to a silly value.
273 if (confidence_perc > 100) {
274 confidence_perc = 100;
275 warning("G1ConfidencePercent is set to a value that is too large, "
276 "it's been updated to %u", confidence_perc);
277 }
278 _sigma = (double) confidence_perc / 100.0;
271 279
272 // start conservatively (around 50ms is about right) 280 // start conservatively (around 50ms is about right)
273 _concurrent_mark_remark_times_ms->add(0.05); 281 _concurrent_mark_remark_times_ms->add(0.05);
274 _concurrent_mark_cleanup_times_ms->add(0.20); 282 _concurrent_mark_cleanup_times_ms->add(0.20);
275 _tenuring_threshold = MaxTenuringThreshold; 283 _tenuring_threshold = MaxTenuringThreshold;