RFR: 8377895: Create sizeof_auto, to reduce narrowing conversions [v7]

Albert Mingkun Yang ayang at openjdk.org
Mon Feb 23 18:46:01 UTC 2026


On Sun, 22 Feb 2026 09:46:05 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

>> OK, so we'll end up with different macros sizeof_auto() and xyz_auto() instead of allowing something more general like auto_size(xyz()) at the call site?
>
> Sorry @dean-long , but I'm not understanding what you are saying about the current
> proposal or what your preferred thing might be.

I think what Dean means that a function should be named by what it is/does, not what caller is/does.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29716#discussion_r2842449808


More information about the hotspot-dev mailing list