[jdk21u-dev] RFR: 8324517: C2: crash in compiled code because of dependency on removed range check CastIIs

Satyen Subramaniam ssubramaniam at openjdk.org
Thu Apr 24 16:38:52 UTC 2025


On Tue, 22 Apr 2025 16:43:00 GMT, Satyen Subramaniam <ssubramaniam at openjdk.org> wrote:

> Backporting JDK-8324517: C2: crash in compiled code because of dependency on removed range check CastIIs. Fix adjusts code to retain range check CastII nodes after loop opts until the end of optimizations, removing them at the end of all optimizations to avoid performance regressions. Ran GHA Sanity Checks, local Tier 1 and 2, and new `test/hotspot/jtreg/compiler/rangechecks/TestArrayAccessAboveRCAfterRCCastIIEliminated.java` tests. Patch is clean.

Missed that tip change was backed out and redone, closing

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

PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1691#issuecomment-2828230313


More information about the jdk-updates-dev mailing list