RFR: 8367485: os::physical_memory is broken in 32-bit JVMs when running on 64-bit OSes
Andrew Haley
aph at openjdk.org
Wed Sep 17 10:18:00 UTC 2025
On Wed, 17 Sep 2025 08:58:05 GMT, Anton Artemov <duke at openjdk.org> wrote:
> > Wouldn't it be better effectively to restore the status quo ante, albeit with a standard type such as `uint64_t`?
>
> Do you think that all memory functions should return `uint64_t` then, not only `physical_memory()`?
Yes. `available_memory()` should report the available memory reported by the OS.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27335#issuecomment-3302301313
More information about the hotspot-runtime-dev
mailing list