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

Anton Artemov duke at openjdk.org
Wed Jul 30 14:44:59 UTC 2025


On Wed, 30 Jul 2025 14:32:57 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

>> This is a valid point, but then we'll need to address it somehow else once a pattern with `[[nodiscard]]` or enum class return value is introduced. Or, simply add an empty clause for failure. For now, I will just put a comment there as suggested.
>
> Note that the main point here was the cast to (void) used to indicate that the return value is explicitly discarded. Does that not work with the [[nodiscard]]?

Sorry, I completely missed that point. Need to check this.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25450#discussion_r2242944621


More information about the hotspot-dev mailing list