changeset 17179:6d8ae4c6725f

[SPARC] UseCompressedOops defaulting to false on SPARC && GRAAL
author Stefan Anzinger <stefan.anzinger@oracle.com>
date Mon, 22 Sep 2014 11:20:35 -0700
parents bef7eac46e1e
children ae5b66255083 2d401b9ca70d
files src/share/vm/runtime/arguments.cpp
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp	Mon Sep 22 09:29:37 2014 -0700
+++ b/src/share/vm/runtime/arguments.cpp	Mon Sep 22 11:20:35 2014 -0700
@@ -1448,7 +1448,10 @@
   // the only value that can override MaxHeapSize if we are
   // to use UseCompressedOops is InitialHeapSize.
   size_t max_heap_size = MAX2(MaxHeapSize, InitialHeapSize);
-
+  // Set default on graal with sparc to not use compressed oops as long they are not implemented
+#if defined(GRAAL) && defined(TARGET_ARCH_sparc)
+  FLAG_SET_DEFAULT(UseCompressedOops, false);
+#else // if !(GRAAL && SOLARIS)
   if (max_heap_size <= max_heap_for_compressed_oops()) {
 #if !defined(COMPILER1) || defined(TIERED)
     if (FLAG_IS_DEFAULT(UseCompressedOops)) {
@@ -1473,6 +1476,7 @@
   }
 #endif // _LP64
 #endif // ZERO
+#endif // !(GRAAL && SOLARIS)
 }