# HG changeset patch # User kvn # Date 1251137626 25200 # Node ID 82bd76d4d7f2a3bf48bdd98d49bfec72823f29bd # Parent 72088be4b3868fa9a57195af20368b53f74be6bf 6873800: enable compressed oops by default Summary: enable compressed oops by default Reviewed-by: never, ysr diff -r 72088be4b386 -r 82bd76d4d7f2 src/share/vm/runtime/arguments.cpp --- 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) {