comparison src/share/vm/runtime/arguments.cpp @ 8035:f64ffbf81af5

8006432: Ratio flags should be unsigned Summary: Flags changed to be of uintx type Reviewed-by: johnc, tamao
author jwilhelm
date Thu, 07 Feb 2013 15:51:25 +0100
parents c73c3f2c5b3b
children 9425ba04792d
comparison
equal deleted inserted replaced
8034:bce1ac447f6b 8035:f64ffbf81af5
1237 // If we decided above (or user explicitly requested) 1237 // If we decided above (or user explicitly requested)
1238 // `promote all' (via MaxTenuringThreshold := 0), 1238 // `promote all' (via MaxTenuringThreshold := 0),
1239 // prefer minuscule survivor spaces so as not to waste 1239 // prefer minuscule survivor spaces so as not to waste
1240 // space for (non-existent) survivors 1240 // space for (non-existent) survivors
1241 if (FLAG_IS_DEFAULT(SurvivorRatio) && MaxTenuringThreshold == 0) { 1241 if (FLAG_IS_DEFAULT(SurvivorRatio) && MaxTenuringThreshold == 0) {
1242 FLAG_SET_ERGO(intx, SurvivorRatio, MAX2((intx)1024, SurvivorRatio)); 1242 FLAG_SET_ERGO(uintx, SurvivorRatio, MAX2((uintx)1024, SurvivorRatio));
1243 } 1243 }
1244 // If OldPLABSize is set and CMSParPromoteBlocksToClaim is not, 1244 // If OldPLABSize is set and CMSParPromoteBlocksToClaim is not,
1245 // set CMSParPromoteBlocksToClaim equal to OldPLABSize. 1245 // set CMSParPromoteBlocksToClaim equal to OldPLABSize.
1246 // This is done in order to make ParNew+CMS configuration to work 1246 // This is done in order to make ParNew+CMS configuration to work
1247 // with YoungPLABSize and OldPLABSize options. 1247 // with YoungPLABSize and OldPLABSize options.
1879 } 1879 }
1880 1880
1881 if (UseParallelOldGC && ParallelOldGCSplitALot) { 1881 if (UseParallelOldGC && ParallelOldGCSplitALot) {
1882 // Settings to encourage splitting. 1882 // Settings to encourage splitting.
1883 if (!FLAG_IS_CMDLINE(NewRatio)) { 1883 if (!FLAG_IS_CMDLINE(NewRatio)) {
1884 FLAG_SET_CMDLINE(intx, NewRatio, 2); 1884 FLAG_SET_CMDLINE(uintx, NewRatio, 2);
1885 } 1885 }
1886 if (!FLAG_IS_CMDLINE(ScavengeBeforeFullGC)) { 1886 if (!FLAG_IS_CMDLINE(ScavengeBeforeFullGC)) {
1887 FLAG_SET_CMDLINE(bool, ScavengeBeforeFullGC, false); 1887 FLAG_SET_CMDLINE(bool, ScavengeBeforeFullGC, false);
1888 } 1888 }
1889 } 1889 }