RFR: 8326421: Add jtreg test for large arrayCopy disjoint case.

Emanuel Peter epeter at openjdk.org
Wed Mar 27 17:12:29 UTC 2024


On Tue, 26 Mar 2024 16:49:36 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

>> Hi All,
>> 
>> Added a new jtreg test case for large arrayCopy disjoint case. 
>> This will test byte array copy operation for aligned and non aligned cases with array length greater than 2.5MB.
>> 
>> Please review and provide your feedback.
>> 
>> Thanks,
>> Swati
>> Intel
>
> test/hotspot/jtreg/compiler/arraycopy/TestArrayCopyDisjointLarge.java line 32:
> 
>> 30:  * @summary Test large arrayCopy.
>> 31:  *
>> 32:  * @run main/othervm/timeout=600 -XX:-TieredCompilation -Xbatch compiler.arraycopy.TestArrayCopyDisjointLarge
> 
> What was the reason to use these 2 flags `-XX:-TieredCompilation -Xbatch`?

I would suggest that you remove the two flags, and then you can also remove the `othervm`. It will still be a `main` test, and the flags can be passed in from the outside. We do that in our testing infrastructure, i.e. run it with different sets of flags.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17962#discussion_r1541500695


More information about the hotspot-compiler-dev mailing list