RFR: 8346836: C2: Verify CastII/CastLL bounds at runtime [v11]
Vladimir Ivanov
vlivanov at openjdk.org
Fri Apr 25 05:21:54 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
JVM knows how to unwind the stack when crash happens in compiled code (compiled frame on top). When native frame is on top, it relies on platform ABI, so fails to unwind the stack at the border of native and compiled frames because compiled code doesn't follow platform ABI conventions.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22880#issuecomment-2829399402
More information about the hotspot-compiler-dev
mailing list