SUGGESTED FIX
This prevents the flag from being turned on:
set_ergonomics_flags();
+ #ifdef __APPLE__
+ UNSUPPORTED_OPTION(UseCompressedOops, "UseCompressedOops, pending the fix for 7118647,")
+ #endif
|
SUGGESTED FIX
Here are the context diffs for the proposed fix:
diff -r a5a9db0e0203 src/share/vm/runtime/arguments.cpp
--- a/src/share/vm/runtime/arguments.cpp Tue Dec 06 07:23:42 2011 -0800
+++ b/src/share/vm/runtime/arguments.cpp Tue Dec 06 15:29:17 2011 -0800
@@ -1359,9 +1359,12 @@
// by ergonomics.
if (MaxHeapSize <= max_heap_for_compressed_oops()) {
#if !defined(COMPILER1) || defined(TIERED)
+#ifndef __APPLE__
+ // disable UseCompressedOops by default on MacOS X until 7118647 is fixed
if (FLAG_IS_DEFAULT(UseCompressedOops)) {
FLAG_SET_ERGO(bool, UseCompressedOops, true);
}
+#endif // !__APPLE__
#endif
#ifdef _WIN64
if (UseLargePages && UseCompressedOops) {
|