comparison src/share/vm/gc_implementation/g1/collectionSetChooser.cpp @ 5964:21595f05bc93

7146246: G1: expose some of the -XX flags that drive which old regions to collect during mixed GCs Summary: Make two G1 cmd line flags available in product builds: G1HeapWastePercent (previously called: G1OldReclaimableThresholdPercent) and G1MixedGCCountTarget (previous called: G1MaxMixedGCNum). Also changed the default of the former from 1% to 5% and the default for G1OldCSetRegionLiveThresholdPercent to 90%. Reviewed-by: azeemj, jwilhelm, johnc
author tonyp
date Fri, 23 Mar 2012 10:53:19 -0400
parents a9647476d1a4
children 720b6a76dd9d
comparison
equal deleted inserted replaced
5963:64bf7c8270cb 5964:21595f05bc93
283 // The calculation is based on the number of marked regions we added 283 // The calculation is based on the number of marked regions we added
284 // to the CSet chooser in the first place, not how many remain, so 284 // to the CSet chooser in the first place, not how many remain, so
285 // that the result is the same during all mixed GCs that follow a cycle. 285 // that the result is the same during all mixed GCs that follow a cycle.
286 286
287 const size_t region_num = (size_t) _length; 287 const size_t region_num = (size_t) _length;
288 const size_t gc_num = (size_t) G1MaxMixedGCNum; 288 const size_t gc_num = (size_t) G1MixedGCCountTarget;
289 size_t result = region_num / gc_num; 289 size_t result = region_num / gc_num;
290 // emulate ceiling 290 // emulate ceiling
291 if (result * gc_num < region_num) { 291 if (result * gc_num < region_num) {
292 result += 1; 292 result += 1;
293 } 293 }