# HG changeset patch # User Stefan Anzinger # Date 1411410035 25200 # Node ID 6d8ae4c6725f8d6051293c75d3bddf3d9089ee90 # Parent bef7eac46e1e1fcee5b66c4c024cbd7d05b84d39 [SPARC] UseCompressedOops defaulting to false on SPARC && GRAAL diff -r bef7eac46e1e -r 6d8ae4c6725f src/share/vm/runtime/arguments.cpp --- 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) }