mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-21 20:30:39 +00:00
8381969: os::physical_memory is still broken in 32-bit systems when running on 64-bit OSes
Reviewed-by: jsikstro, stefank, aartemov
This commit is contained in:
parent
ccbbef5561
commit
701d0cb3a2
@ -1515,7 +1515,7 @@ void Arguments::set_heap_size() {
|
||||
!FLAG_IS_DEFAULT(MinRAMPercentage) ||
|
||||
!FLAG_IS_DEFAULT(InitialRAMPercentage);
|
||||
|
||||
const size_t avail_mem = os::physical_memory();
|
||||
const physical_memory_size_type avail_mem = os::physical_memory();
|
||||
|
||||
// If the maximum heap size has not been set with -Xmx, then set it as
|
||||
// fraction of the size of physical memory, respecting the maximum and
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user