File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/hotspot/share/runtime Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1504,7 +1504,6 @@ static const size_t DefaultHeapBaseMinAddress = HeapBaseMinAddress;
1504
1504
1505
1505
void Arguments::set_heap_size () {
1506
1506
julong phys_mem;
1507
- size_t physical_mem_val = 0 ;
1508
1507
1509
1508
// If the user specified one of these options, they
1510
1509
// want specific memory sizing so do not limit memory
@@ -1518,15 +1517,13 @@ void Arguments::set_heap_size() {
1518
1517
!FLAG_IS_DEFAULT (MaxRAM));
1519
1518
if (override_coop_limit) {
1520
1519
if (FLAG_IS_DEFAULT (MaxRAM)) {
1521
- physical_mem_val = os::physical_memory ();
1522
- phys_mem = static_cast <julong>(physical_mem_val);
1520
+ phys_mem = static_cast <julong>(os::physical_memory ());
1523
1521
FLAG_SET_ERGO (MaxRAM, (uint64_t )phys_mem);
1524
1522
} else {
1525
1523
phys_mem = (julong)MaxRAM;
1526
1524
}
1527
1525
} else {
1528
- physical_mem_val = os::physical_memory ();
1529
- phys_mem = FLAG_IS_DEFAULT (MaxRAM) ? MIN2 (static_cast <julong>(physical_mem_val), (julong)MaxRAM)
1526
+ phys_mem = FLAG_IS_DEFAULT (MaxRAM) ? MIN2 (static_cast <julong>(os::physical_memory ()), (julong)MaxRAM)
1530
1527
: (julong)MaxRAM;
1531
1528
}
1532
1529
You can’t perform that action at this time.
0 commit comments