RFR: 8314258: Add integer_cast for checking conversions don't change the value [v5]

Kim Barrett kbarrett at openjdk.org
Wed Feb 18 01:33:00 UTC 2026


On Mon, 16 Feb 2026 18:49:52 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

>> Please review this addition of the `integer_cast` utility.
>> 
>> Details in first comment, to avoid email spamming from automatic messages.
>> 
>> Testing: mach5 tier1-5 with `checked_cast` for integral types changed to call
>> the new `integer_cast`.  Addition of `integer_cast` includes gtests.
>
> Kim Barrett has updated the pull request incrementally with one additional commit since the last revision:
> 
>   move comment slightlhy

I have the requisite 2 reviews, but wondering if @theRealAph is going to have anything more to say?
Not super urgent, just wondering if I should hold off.

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

PR Comment: https://git.openjdk.org/jdk/pull/29582#issuecomment-3917964798


More information about the hotspot-dev mailing list