RFR: 8314258: checked_cast doesn't properly check some cases [v5]

Stefan Karlsson stefank at openjdk.org
Mon Feb 16 18:58:21 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

Still looks good. Maybe change the title of the Enh/PR to say something about introducing an integer_cast functionality?

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

Marked as reviewed by stefank (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/29582#pullrequestreview-3810126869


More information about the hotspot-dev mailing list