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)) { |