src/share/vm/runtime/arguments.cpp

changeset 5339
c92b74c62d97
parent 5292
b88209cf98c0
child 5343
6e3634222155
equal deleted inserted replaced
5312:71963b3f802a 5339:c92b74c62d97
1569 void Arguments::set_heap_base_min_address() { 1569 void Arguments::set_heap_base_min_address() {
1570 if (FLAG_IS_DEFAULT(HeapBaseMinAddress) && UseG1GC && HeapBaseMinAddress < 1*G) { 1570 if (FLAG_IS_DEFAULT(HeapBaseMinAddress) && UseG1GC && HeapBaseMinAddress < 1*G) {
1571 // By default HeapBaseMinAddress is 2G on all platforms except Solaris x86. 1571 // By default HeapBaseMinAddress is 2G on all platforms except Solaris x86.
1572 // G1 currently needs a lot of C-heap, so on Solaris we have to give G1 1572 // G1 currently needs a lot of C-heap, so on Solaris we have to give G1
1573 // some extra space for the C-heap compared to other collectors. 1573 // some extra space for the C-heap compared to other collectors.
1574 FLAG_SET_ERGO(uintx, HeapBaseMinAddress, 1*G); 1574 // Use FLAG_SET_DEFAULT here rather than FLAG_SET_ERGO to make sure that
1575 // code that checks for default values work correctly.
1576 FLAG_SET_DEFAULT(HeapBaseMinAddress, 1*G);
1575 } 1577 }
1576 } 1578 }
1577 1579
1578 void Arguments::set_heap_size() { 1580 void Arguments::set_heap_size() {
1579 if (!FLAG_IS_DEFAULT(DefaultMaxRAMFraction)) { 1581 if (!FLAG_IS_DEFAULT(DefaultMaxRAMFraction)) {

mercurial