RFR: 8357086: os::xxx functions returning memory size should return size_t [v4]

Stefan Karlsson stefank at openjdk.org
Thu Jun 12 09:52:30 UTC 2025


On Thu, 12 Jun 2025 08:02:55 GMT, Anton Artemov <duke at openjdk.org> wrote:

> > Hmm. Maybe I'm reading this wrong, but to me it looks like you can return -2 via this code:
> 
> Yes, you are correct that **that** code can return -2 in some cases. But we need to see where this code returns this value and if it is propagated further.

I followed the paths you indicated and I agree that we don't propagate -2 here.

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

PR Comment: https://git.openjdk.org/jdk/pull/25450#issuecomment-2965932235


More information about the hotspot-dev mailing list