RFR: 8338924: C1: assert(0 <= i && i < _len) failed: illegal index 5 for length 5

Matias Saavedra Silva matsaave at openjdk.org
Thu Aug 29 17:20:27 UTC 2024


The change in [JDK-8335664](https://bugs.openjdk.org/browse/JDK-8335664) caused a crash when initializing basic blocks with `-Xcomp`. This change introduces a check to see if JSR is the last bytecode in its method so that expected behavior matches the previous patch. Verified with tier 1-6 tests.

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

Commit messages:
 - Copyright date
 - Removed from Problemlist-Xcomp
 - Merge branch 'master' into jsr_test_8338924
 - Dean patch
 - Moved conditional up
 - Removed test from problem list
 - Corrected previous change
 - Merge branch 'master' into jsr_test_8338924
 - Removed repeated code
 - 8338924: runtime/interpreter/LastJsrTest.java fails assert(0 <= i && i < _len) failed: illegal index 5 for length 5

Changes: https://git.openjdk.org/jdk/pull/20732/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20732&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8338924
  Stats: 25 lines in 4 files changed: 19 ins; 2 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/20732.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20732/head:pull/20732

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


More information about the hotspot-compiler-dev mailing list