RFR: 8346836: C2: Introduce a way to verify the correctness of ConstraintCastNodes at runtime

Quan Anh Mai qamai at openjdk.org
Wed Dec 25 14:58:44 UTC 2024


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.

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

Commit messages:
 - Introduce VerifyConstraintCasts

Changes: https://git.openjdk.org/jdk/pull/22880/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22880&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8346836
  Stats: 87 lines in 6 files changed: 81 ins; 0 del; 6 mod
  Patch: https://git.openjdk.org/jdk/pull/22880.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22880/head:pull/22880

PR: https://git.openjdk.org/jdk/pull/22880


More information about the hotspot-compiler-dev mailing list