RFR: 8302850: Implement C1 clone intrinsic that reuses arraycopy code for primitive arrays [v10]
Galder Zamarreño
galder at openjdk.org
Wed Apr 24 07:14:59 UTC 2024
On Tue, 23 Apr 2024 13:37:49 GMT, Boris Ulasevich <bulasevich at openjdk.org> wrote:
>> 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.
Expanded the tests in this class. I verified with `PrintLIR` that the methods are being C1 compiled.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/17667#discussion_r1577391774
More information about the hotspot-compiler-dev
mailing list