comparison src/share/vm/runtime/arguments.cpp @ 4111:55d777c0860a

7118648: disable compressed oops by default on MacOS X until 7118647 is fixed Summary: UseCompressedOops is false by default on MacOS X; can still be set manually Reviewed-by: jmelvin, kvn, dholmes
author dcubed
date Wed, 07 Dec 2011 07:27:09 -0800
parents bca17e38de00
children 04b9a2566eec d725f0affb1a 4f25538b54c9
comparison
equal deleted inserted replaced
4110:03865c41c4f3 4111:55d777c0860a
1357 #ifdef _LP64 1357 #ifdef _LP64
1358 // Check that UseCompressedOops can be set with the max heap size allocated 1358 // Check that UseCompressedOops can be set with the max heap size allocated
1359 // by ergonomics. 1359 // by ergonomics.
1360 if (MaxHeapSize <= max_heap_for_compressed_oops()) { 1360 if (MaxHeapSize <= max_heap_for_compressed_oops()) {
1361 #if !defined(COMPILER1) || defined(TIERED) 1361 #if !defined(COMPILER1) || defined(TIERED)
1362 // disable UseCompressedOops by default on MacOS X until 7118647 is fixed
1363 #ifndef __APPLE__
1362 if (FLAG_IS_DEFAULT(UseCompressedOops)) { 1364 if (FLAG_IS_DEFAULT(UseCompressedOops)) {
1363 FLAG_SET_ERGO(bool, UseCompressedOops, true); 1365 FLAG_SET_ERGO(bool, UseCompressedOops, true);
1364 } 1366 }
1367 #endif // !__APPLE__
1365 #endif 1368 #endif
1366 #ifdef _WIN64 1369 #ifdef _WIN64
1367 if (UseLargePages && UseCompressedOops) { 1370 if (UseLargePages && UseCompressedOops) {
1368 // Cannot allocate guard pages for implicit checks in indexed addressing 1371 // Cannot allocate guard pages for implicit checks in indexed addressing
1369 // mode, when large pages are specified on windows. 1372 // mode, when large pages are specified on windows.