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

Kim Barrett kbarrett at openjdk.org
Sun Feb 22 09:49:08 UTC 2026


On Fri, 20 Feb 2026 22:33:28 GMT, Dean Long <dlong at openjdk.org> wrote:

>> I think that it can be renamed or otherwise adjusted later if someone comes up
>> with other use-cases. But for now, it is provided as nothing more than
>> supporting the implementation of sizeof_auto.
>
> 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.

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

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


More information about the hotspot-dev mailing list