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

Vladimir Ivanov vlivanov at openjdk.org
Thu Apr 10 00:57:39 UTC 2025


On Wed, 9 Apr 2025 18:03:36 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:

>> Indeed. Still puzzled why stack traces are omitted. Do you have a reproducer to try?
>
> You can just run `compiler/arraycopy/TestArrayCopyConjoint.java` with `-XX:+StressGCM -XX:VerifyConstraintCasts=2`.

Mystery solved: it is the consequence of the fact that JVM doesn't preserve frame pointer in generated code. With `-XX:+PreserveFramePointer` everything works fine.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22880#discussion_r2036336004


More information about the hotspot-compiler-dev mailing list