RFR: 8371628: C2: add a test case for the arraycopy changes in JDK-8297933

Daniel Skantz dskantz at openjdk.org
Wed Nov 12 16:06:24 UTC 2025


This PR adds a test for the arraycopy bug that caused a crash in `ArrayCopyNode::prepare_array_copy` and was fixed in JDK-8297933. A crash with this signature was previously reported on `compiler/c1/TestArrayCopy.java` but this test does not reproduce the issue (at least not reliably).

Testing: T1-3. Extra testing: the added test reliably fails if the arraycopy changes from JDK-8297933 are backed out.

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

Commit messages:
 - bugid
 - CR; annotate test.
 - WIP add test

Changes: https://git.openjdk.org/jdk/pull/28269/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28269&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8371628
  Stats: 14 lines in 1 file changed: 13 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/28269.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28269/head:pull/28269

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


More information about the hotspot-compiler-dev mailing list