Mercurial > hg > truffle
comparison src/share/vm/runtime/arguments.cpp @ 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 | 061cd4d965fc |
children | 68ef3fdcdb76 148e5441d916 |
comparison
equal
deleted
inserted
replaced
931:72088be4b386 | 932:82bd76d4d7f2 |
---|---|
1231 | 1231 |
1232 #ifdef _LP64 | 1232 #ifdef _LP64 |
1233 // Check that UseCompressedOops can be set with the max heap size allocated | 1233 // Check that UseCompressedOops can be set with the max heap size allocated |
1234 // by ergonomics. | 1234 // by ergonomics. |
1235 if (MaxHeapSize <= max_heap_for_compressed_oops()) { | 1235 if (MaxHeapSize <= max_heap_for_compressed_oops()) { |
1236 if (FLAG_IS_DEFAULT(UseCompressedOops)) { | 1236 if (FLAG_IS_DEFAULT(UseCompressedOops) && !UseG1GC) { |
1237 // Turn off until bug is fixed. | 1237 FLAG_SET_ERGO(bool, UseCompressedOops, true); |
1238 // the following line to return it to default status. | |
1239 // FLAG_SET_ERGO(bool, UseCompressedOops, true); | |
1240 } | 1238 } |
1241 #ifdef _WIN64 | 1239 #ifdef _WIN64 |
1242 if (UseLargePages && UseCompressedOops) { | 1240 if (UseLargePages && UseCompressedOops) { |
1243 // Cannot allocate guard pages for implicit checks in indexed addressing | 1241 // Cannot allocate guard pages for implicit checks in indexed addressing |
1244 // mode, when large pages are specified on windows. | 1242 // mode, when large pages are specified on windows. |