RFR: 8305770: os::Linux::available_memory() should refer MemAvailable in /proc/meminfo

Yasumasa Suenaga ysuenaga at openjdk.org
Wed May 10 04:14:27 UTC 2023


On Mon, 8 May 2023 13:14:26 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

>> @tstuefe @robcasloz 
>> 
>> I updated this PR to implement both `free_memory` and `available_memory`. In Linux, `free_memory` refers MemFree (equivalent with older `available_memory`), and `available_memory` refers MemAvailable. In other platforms, `free_memory` proxies `available_memory`. And also `CompileBroker` uses `free_memory` rather than `available_memory`. Some GHA checks were failed, but I think they are not caused by this change.
>
> @YaSuenag Windows GHA issue should go away if you merge with latest master. See https://bugs.openjdk.org/browse/JDK-8306543

@jerboaa @dholmes-ora I added comment for `available_memory` and `free_memory`. Is it enough? https://github.com/openjdk/jdk/pull/13398/commits/6aba3440131936a82daccdb65e7b241c022a21c7

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

PR Comment: https://git.openjdk.org/jdk/pull/13398#issuecomment-1541326841


More information about the hotspot-compiler-dev mailing list