RFR: 8367485: os::physical_memory is broken in 32-bit JVMs when running on 64-bit OSes [v4]
Anton Artemov
duke at openjdk.org
Thu Sep 18 14:58:29 UTC 2025
On Thu, 18 Sep 2025 14:31:56 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
>> Anton Artemov has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8367485: Addressed reviewer's comments
>
> src/hotspot/share/gc/shared/gcInitLogger.cpp line 66:
>
>> 64: void GCInitLogger::print_memory() {
>> 65: uint64_t memory = os::physical_memory();
>> 66: log_info_p(gc, init)("Memory: " PROPERFMT, PROPERFMTARGS(memory));
>
> PROPERFMT uses %zu.
>
> (If you change this, please keep PROPERFMT as it is. Just change this to raw uint64_t printing).
Changed to `UINT64_FORMAT`.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27335#discussion_r2359728127
More information about the hotspot-runtime-dev
mailing list