Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp Wed Feb 06 14:50:37 2013 -0800 +++ b/src/share/vm/runtime/arguments.cpp Thu Feb 07 15:51:25 2013 +0100 @@ -1239,7 +1239,7 @@ // prefer minuscule survivor spaces so as not to waste // space for (non-existent) survivors if (FLAG_IS_DEFAULT(SurvivorRatio) && MaxTenuringThreshold == 0) { - FLAG_SET_ERGO(intx, SurvivorRatio, MAX2((intx)1024, SurvivorRatio)); + FLAG_SET_ERGO(uintx, SurvivorRatio, MAX2((uintx)1024, SurvivorRatio)); } // If OldPLABSize is set and CMSParPromoteBlocksToClaim is not, // set CMSParPromoteBlocksToClaim equal to OldPLABSize. @@ -1881,7 +1881,7 @@ if (UseParallelOldGC && ParallelOldGCSplitALot) { // Settings to encourage splitting. if (!FLAG_IS_CMDLINE(NewRatio)) { - FLAG_SET_CMDLINE(intx, NewRatio, 2); + FLAG_SET_CMDLINE(uintx, NewRatio, 2); } if (!FLAG_IS_CMDLINE(ScavengeBeforeFullGC)) { FLAG_SET_CMDLINE(bool, ScavengeBeforeFullGC, false);