RFR: 8346836: C2: Introduce a way to verify the correctness of ConstraintCastNodes at runtime [v2]
Quan Anh Mai
qamai at openjdk.org
Sun Jan 19 15:08:28 UTC 2025
> 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
- add tests
- make VerifyConstraintCast uint, better debug info
- Merge branch 'master' into verifycast
- Introduce VerifyConstraintCasts
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/22880/files
- new: https://git.openjdk.org/jdk/pull/22880/files/de9aea41..f18ca9da
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=22880&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=22880&range=00-01
Stats: 21642 lines in 647 files changed: 15480 ins; 3711 del; 2451 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