Mercurial > hg > release > icedtea7-forest-2.4 > hotspot
changeset 4767:973c3ede4866
8017483: G1 tests fail with native OOME on Solaris x86 after HeapBaseMinAddress has been increased
Summary: Set HeapBaseMinAddress as default rather than ergo
Reviewed-by: stefank, jmasa, kvn
author | brutisso |
---|---|
date | Thu, 27 Jun 2013 09:59:59 +0200 |
parents | ad5bb04f36f5 |
children | 1dad4752d5f7 |
files | src/share/vm/runtime/arguments.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp Fri May 31 13:54:47 2013 -0700 +++ b/src/share/vm/runtime/arguments.cpp Thu Jun 27 09:59:59 2013 +0200 @@ -1505,7 +1505,9 @@ // By default HeapBaseMinAddress is 2G on all platforms except Solaris x86. // G1 currently needs a lot of C-heap, so on Solaris we have to give G1 // some extra space for the C-heap compared to other collectors. - FLAG_SET_ERGO(uintx, HeapBaseMinAddress, 1*G); + // Use FLAG_SET_DEFAULT here rather than FLAG_SET_ERGO to make sure that + // code that checks for default values work correctly. + FLAG_SET_DEFAULT(HeapBaseMinAddress, 1*G); } }