RFR: 8333522: JFR SwapSpace event might read wrong free swap space size [v3]

Matthias Baesken mbaesken at openjdk.org
Fri Jun 7 10:51:14 UTC 2024


On Fri, 7 Jun 2024 09:41:33 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

>> In some cgroups v2 based test system , a too large free swap space value has been observed.
>> The value should not be larger than total swap space.
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
> 
>   semicolon missing

added the semicolon .

> Feel free to do that. In a separate PR/bug though.

Thinking more about the potentially  failing sysinfo -  could it be that we get in this case an uninitialized sysinfo struct and just happily use the values from there ?
For example here
https://github.com/openjdk/jdk/blob/master/src/hotspot/os/linux/os_linux.cpp#L287

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

PR Comment: https://git.openjdk.org/jdk/pull/19574#issuecomment-2154585289


More information about the hotspot-runtime-dev mailing list