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:
Andrew Haley 2026-04-10 17:03:15 +00:00
parent ccbbef5561
commit 701d0cb3a2

View File

@ -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