comparison src/share/vm/runtime/arguments.cpp @ 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 addc0564e5b5
children 52b4284cb496
comparison
equal deleted inserted replaced
17178:bef7eac46e1e 17179:6d8ae4c6725f
1446 #ifdef _LP64 1446 #ifdef _LP64
1447 // MaxHeapSize is not set up properly at this point, but 1447 // MaxHeapSize is not set up properly at this point, but
1448 // the only value that can override MaxHeapSize if we are 1448 // the only value that can override MaxHeapSize if we are
1449 // to use UseCompressedOops is InitialHeapSize. 1449 // to use UseCompressedOops is InitialHeapSize.
1450 size_t max_heap_size = MAX2(MaxHeapSize, InitialHeapSize); 1450 size_t max_heap_size = MAX2(MaxHeapSize, InitialHeapSize);
1451 1451 // Set default on graal with sparc to not use compressed oops as long they are not implemented
1452 #if defined(GRAAL) && defined(TARGET_ARCH_sparc)
1453 FLAG_SET_DEFAULT(UseCompressedOops, false);
1454 #else // if !(GRAAL && SOLARIS)
1452 if (max_heap_size <= max_heap_for_compressed_oops()) { 1455 if (max_heap_size <= max_heap_for_compressed_oops()) {
1453 #if !defined(COMPILER1) || defined(TIERED) 1456 #if !defined(COMPILER1) || defined(TIERED)
1454 if (FLAG_IS_DEFAULT(UseCompressedOops)) { 1457 if (FLAG_IS_DEFAULT(UseCompressedOops)) {
1455 FLAG_SET_ERGO(bool, UseCompressedOops, true); 1458 FLAG_SET_ERGO(bool, UseCompressedOops, true);
1456 } 1459 }
1471 FLAG_SET_DEFAULT(UseCompressedClassPointers, false); 1474 FLAG_SET_DEFAULT(UseCompressedClassPointers, false);
1472 } 1475 }
1473 } 1476 }
1474 #endif // _LP64 1477 #endif // _LP64
1475 #endif // ZERO 1478 #endif // ZERO
1479 #endif // !(GRAAL && SOLARIS)
1476 } 1480 }
1477 1481
1478 1482
1479 // NOTE: set_use_compressed_klass_ptrs() must be called after calling 1483 // NOTE: set_use_compressed_klass_ptrs() must be called after calling
1480 // set_use_compressed_oops(). 1484 // set_use_compressed_oops().