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

changeset 4650
f1fb03a251e9
parent 4385
37f7535e5f18
child 4681
27714220e50e
equal deleted inserted replaced
4595:d5e12e7d2f71 4650: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;

mercurial