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

Anton Artemov duke at openjdk.org
Fri Jun 13 10:16:36 UTC 2025


On Thu, 12 Jun 2025 17:50:58 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> About the MemRes change. I think adding the MemRes instance and then initializing it later makes the code messier:

I generally agree that it is more convenient to construct in the return statement. However, to be consistent with the rest of the codebase, I decided to use a call the constructor (not just the braces version, though it also works).

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

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


More information about the hotspot-dev mailing list