RFR: 8326421: Add jtreg test for large arrayCopy disjoint case.
Swati Sharma
duke at openjdk.org
Tue Mar 5 11:32:47 UTC 2024
On Fri, 23 Feb 2024 18:56:48 GMT, Swati Sharma <duke at openjdk.org> wrote:
> There is already a large suite of arraycopy tests here: https://github.com/openjdk/jdk/tree/master/test/hotspot/jtreg/compiler/arraycopy/stress
>
> Any reason for not extending that one instead?
Hi @shipilev ,
I tried to extend in the stress framework, below are few points which I observed
- As all the test with different primitive types are initializing the orig and test array with MAX_SIZE parameter, so there is no other way to increase the size of array. I tried increasing the MAX_SIZE from 128K to 3MB to cover the test points and that increased the test execution time from 2 minutes to 4 minutes.
- The testWith method is using MAX_SIZE parameter to define the array so defining a new array of 4MB size requires to add new test method for all types which I think would duplicate the code.
- Current test takes few seconds to execute for large size and has very pointed length test cases instead of random length with both aligned and unaligned cases for byte type.
Swati
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17962#issuecomment-1978548219
More information about the hotspot-compiler-dev
mailing list