RFR: 8367485: os::physical_memory is broken in 32-bit JVMs when running on 64-bit OSes [v2]

Anton Artemov duke at openjdk.org
Thu Sep 18 12:57:48 UTC 2025


On Wed, 17 Sep 2025 12:58:44 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

>> Anton Artemov has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8367485: Refactoring with uint64_t
>
> src/hotspot/os/linux/os_linux.cpp line 545:
> 
>> 543:   }
>> 544:   const long int n_phys_pages = sysconf(_SC_PHYS_PAGES);
>> 545:   const long int page_size = sysconf(_SC_PAGESIZE);
> 
> How about just `long`, instead of `long int`?

I refactored everything in a different way.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/27335#discussion_r2359117374


More information about the hotspot-runtime-dev mailing list