Mercurial > hg > truffle
changeset 932:82bd76d4d7f2
6873800: enable compressed oops by default
Summary: enable compressed oops by default
Reviewed-by: never, ysr
author | kvn |
---|---|
date | Mon, 24 Aug 2009 11:13:46 -0700 |
parents | 72088be4b386 |
children | cdb8b7c37ac1 |
files | src/share/vm/runtime/arguments.cpp |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp Thu Aug 20 12:42:57 2009 -0700 +++ b/src/share/vm/runtime/arguments.cpp Mon Aug 24 11:13:46 2009 -0700 @@ -1233,10 +1233,8 @@ // Check that UseCompressedOops can be set with the max heap size allocated // by ergonomics. if (MaxHeapSize <= max_heap_for_compressed_oops()) { - if (FLAG_IS_DEFAULT(UseCompressedOops)) { - // Turn off until bug is fixed. - // the following line to return it to default status. - // FLAG_SET_ERGO(bool, UseCompressedOops, true); + if (FLAG_IS_DEFAULT(UseCompressedOops) && !UseG1GC) { + FLAG_SET_ERGO(bool, UseCompressedOops, true); } #ifdef _WIN64 if (UseLargePages && UseCompressedOops) {