comparison src/share/vm/runtime/arguments.cpp @ 22423:4a532b03e2cd

some fixes and improvements based on JEP 243 review
author Doug Simon <doug.simon@oracle.com>
date Fri, 14 Aug 2015 15:35:08 +0200
parents 4f6caa445b92
children d70fa3eef37d
comparison
equal deleted inserted replaced
22422:a98a02bad801 22423:4a532b03e2cd
1490 #ifdef _LP64 1490 #ifdef _LP64
1491 // MaxHeapSize is not set up properly at this point, but 1491 // MaxHeapSize is not set up properly at this point, but
1492 // the only value that can override MaxHeapSize if we are 1492 // the only value that can override MaxHeapSize if we are
1493 // to use UseCompressedOops is InitialHeapSize. 1493 // to use UseCompressedOops is InitialHeapSize.
1494 size_t max_heap_size = MAX2(MaxHeapSize, InitialHeapSize); 1494 size_t max_heap_size = MAX2(MaxHeapSize, InitialHeapSize);
1495 // Set default on jvmci with sparc to not use compressed oops as long they are not implemented 1495
1496 if (max_heap_size <= max_heap_for_compressed_oops()) { 1496 if (max_heap_size <= max_heap_for_compressed_oops()) {
1497 #if !defined(COMPILER1) || defined(TIERED) 1497 #if !defined(COMPILER1) || defined(TIERED)
1498 if (FLAG_IS_DEFAULT(UseCompressedOops)) { 1498 if (FLAG_IS_DEFAULT(UseCompressedOops)) {
1499 FLAG_SET_ERGO(bool, UseCompressedOops, true); 1499 FLAG_SET_ERGO(bool, UseCompressedOops, true);
1500 } 1500 }
3613 jio_snprintf(fileName, sizeof(fileName), "%s%s%s", jvmciDir, fileSep, name); 3613 jio_snprintf(fileName, sizeof(fileName), "%s%s%s", jvmciDir, fileSep, name);
3614 scp_p->add_suffix(fileName); 3614 scp_p->add_suffix(fileName);
3615 scp_assembly_required = true; 3615 scp_assembly_required = true;
3616 } 3616 }
3617 } 3617 }
3618 FREE_C_HEAP_ARRAY(char, dbuf, mtInternal);
3619 os::closedir(dir);
3618 } 3620 }
3619 3621
3620 } 3622 }
3621 #endif 3623 #endif
3622 3624