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

Roberto Castañeda Lozano rcastanedalo at openjdk.org
Wed Nov 12 17:19:52 UTC 2025


On Wed, 12 Nov 2025 15:58:00 GMT, Daniel Skantz <dskantz at openjdk.org> wrote:

> 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.

Looks good!

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

Marked as reviewed by rcastanedalo (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/28269#pullrequestreview-3454599468


More information about the hotspot-compiler-dev mailing list