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

Aleksey Shipilev shade at openjdk.org
Wed Nov 12 18:25:32 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.

Marked as reviewed by shade (Reviewer).

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

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


More information about the hotspot-compiler-dev mailing list