RFR: 8346836: C2: Verify CastII/CastLL bounds at runtime [v11]

Vladimir Ivanov vlivanov at openjdk.org
Thu Apr 24 23:20:51 UTC 2025


On Thu, 24 Apr 2025 16:12:42 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:

>> Hi,
>> 
>> This patch adds a develop flag `VerifyConstraintCasts`, which will verify the correctness of `CastIINode`s and `CastLLNode`s at runtime and crash the VM if the dynamic value lies outside the type value range.
>> 
>> Please take a look, thanks a lot.
>
> Quan Anh Mai has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Emanuel's suggestion

Marked as reviewed by vlivanov (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/22880#pullrequestreview-2792710891


More information about the hotspot-compiler-dev mailing list