RFR: 8357086: os::xxx functions returning memory size should return size_t [v13]
Kim Barrett
kbarrett at openjdk.org
Fri Aug 1 05:05:58 UTC 2025
On Wed, 30 Jul 2025 14:42:24 GMT, Anton Artemov <duke at openjdk.org> wrote:
>> 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.
Explicitly casting to void is the canonical idiom for ignoring [[nodiscard]].
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25450#discussion_r2246914427
More information about the hotspot-dev
mailing list