RFR: 8302850: Implement C1 clone intrinsic that reuses arraycopy code for primitive arrays [v10]

Boris Ulasevich bulasevich at openjdk.org
Tue Apr 23 13:40:34 UTC 2024


On Tue, 23 Apr 2024 13:29:51 GMT, Boris Ulasevich <bulasevich at openjdk.org> wrote:

>> Added brief test summary.
>
> Thank you!
> 
>> what sizes would you choose? For the types, I would limit it to primitive types
> 
> Yes, checking the primitive types is fine. Let it be int[], long[], and byte[]. For size I would pick an odd.
> 
> 
> static final int ITER = 2000; // ~ Tier3CompileThreshold
> static final int ARRAY_SIZE = 999;

If you like, you can inspect the output of the -XX:+PrintLIR option to see if C1 applies arraycopy as expected.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17667#discussion_r1576280836


More information about the hotspot-compiler-dev mailing list