RFR: 8321931: memory_swap_current_in_bytes reports 0 as "unlimited"

Gerard Ziemski gziemski at openjdk.org
Tue Jan 16 22:39:51 UTC 2024


On Tue, 16 Jan 2024 19:41:49 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

> I'll have a look tomorrow. In general unlimited means `-1` not `0`. cg v1 doesn't explicitly set it to a specified value if it is unlimited. It's a very large number. For cg v2 it's usually the string `max` as specified by the kernel docs of interface files.

Thank you for taking a look. I think I saw this special treatment of 0 value somewhere in source code. I will have to look.

(I wish I posted this PR sooner when all this was still fresh in my memory, but by the same token, I'm happy that at least we are taking a look at this right now and not a year from now...)

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

PR Comment: https://git.openjdk.org/jdk/pull/17314#issuecomment-1894632592


More information about the hotspot-runtime-dev mailing list