comparison src/share/vm/runtime/arguments.cpp @ 21255:ccddbb1409d2

[SPARC] Implement Narrow OOPS
author Stefan Anzinger <stefan.anzinger@oracle.com>
date Wed, 06 May 2015 17:13:50 +0200
parents e121783a0df9
children 5e09292fb017
comparison
equal deleted inserted replaced
21254:7a49a2763a7a 21255:ccddbb1409d2
1500 // MaxHeapSize is not set up properly at this point, but 1500 // MaxHeapSize is not set up properly at this point, but
1501 // the only value that can override MaxHeapSize if we are 1501 // the only value that can override MaxHeapSize if we are
1502 // to use UseCompressedOops is InitialHeapSize. 1502 // to use UseCompressedOops is InitialHeapSize.
1503 size_t max_heap_size = MAX2(MaxHeapSize, InitialHeapSize); 1503 size_t max_heap_size = MAX2(MaxHeapSize, InitialHeapSize);
1504 // Set default on graal with sparc to not use compressed oops as long they are not implemented 1504 // Set default on graal with sparc to not use compressed oops as long they are not implemented
1505 #if defined(GRAAL) && defined(TARGET_ARCH_sparc) 1505 /*#if defined(GRAAL) && defined(TARGET_ARCH_sparc)
1506 FLAG_SET_DEFAULT(UseCompressedOops, false); 1506 FLAG_SET_DEFAULT(UseCompressedOops, false);
1507 #else // if !(GRAAL && SOLARIS) 1507 #else // if !(GRAAL && SOLARIS)*/
1508 if (max_heap_size <= max_heap_for_compressed_oops()) { 1508 if (max_heap_size <= max_heap_for_compressed_oops()) {
1509 #if !defined(COMPILER1) || defined(TIERED) 1509 #if !defined(COMPILER1) || defined(TIERED)
1510 if (FLAG_IS_DEFAULT(UseCompressedOops)) { 1510 if (FLAG_IS_DEFAULT(UseCompressedOops)) {
1511 FLAG_SET_ERGO(bool, UseCompressedOops, true); 1511 FLAG_SET_ERGO(bool, UseCompressedOops, true);
1512 } 1512 }
1527 FLAG_SET_DEFAULT(UseCompressedClassPointers, false); 1527 FLAG_SET_DEFAULT(UseCompressedClassPointers, false);
1528 } 1528 }
1529 } 1529 }
1530 #endif // _LP64 1530 #endif // _LP64
1531 #endif // ZERO 1531 #endif // ZERO
1532 #endif // !(GRAAL && SOLARIS) 1532 //#endif // !(GRAAL && SOLARIS)
1533 } 1533 }
1534 1534
1535 1535
1536 // NOTE: set_use_compressed_klass_ptrs() must be called after calling 1536 // NOTE: set_use_compressed_klass_ptrs() must be called after calling
1537 // set_use_compressed_oops(). 1537 // set_use_compressed_oops().