Mercurial > hg > truffle
diff src/share/vm/runtime/arguments.cpp @ 6818:22b8d3d181d9
8000351: Tenuring threshold should be unsigned
Summary: Change the flags and variables related to tenuring threshold to be unsigned
Reviewed-by: jmasa, johnc
author | jwilhelm |
---|---|
date | Wed, 03 Oct 2012 20:31:41 +0200 |
parents | b86575d092a2 |
children | 8e47bac5643a fb19af007ffc 6ba00f89fbe1 |
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp Wed Oct 03 08:08:52 2012 -0700 +++ b/src/share/vm/runtime/arguments.cpp Wed Oct 03 20:31:41 2012 +0200 @@ -1112,7 +1112,7 @@ // AlwaysTenure flag should make ParNew promote all at first collection. // See CR 6362902. if (AlwaysTenure) { - FLAG_SET_CMDLINE(intx, MaxTenuringThreshold, 0); + FLAG_SET_CMDLINE(uintx, MaxTenuringThreshold, 0); } // When using compressed oops, we use local overflow stacks, // rather than using a global overflow list chained through @@ -1231,7 +1231,7 @@ // promote all objects surviving "tenuring_default" scavenges. if (FLAG_IS_DEFAULT(MaxTenuringThreshold) && FLAG_IS_DEFAULT(SurvivorRatio)) { - FLAG_SET_ERGO(intx, MaxTenuringThreshold, tenuring_default); + FLAG_SET_ERGO(uintx, MaxTenuringThreshold, tenuring_default); } // If we decided above (or user explicitly requested) // `promote all' (via MaxTenuringThreshold := 0),