8299970: Speed up compiler/arraycopy/TestArrayCopyConjoint.java

Reviewed-by: chagedorn, kvn, thartmann
This commit is contained in:
Emanuel Peter 2023-02-13 08:13:13 +00:00
parent d1c87a03ad
commit 5d39d14522
2 changed files with 15 additions and 25 deletions

View file

@ -202,27 +202,22 @@ public class TestArrayCopyDisjoint {
setup();
try {
for (int i = 0 ; i < 1000000 ; i++ ) {
testByte(lengths[i % lengths.length], r.nextInt(2048) , r.nextInt(2048));
testByte_constant_LT32B (r.nextInt(2048) , r.nextInt(2048));
testByte_constant_LT64B (r.nextInt(2048) , r.nextInt(2048));
for (int i = 0 ; i < 30_000 ; i++ ) {
testByte(lengths[i % lengths.length], r.nextInt(2048) , r.nextInt(2048));
testByte_constant_LT32B (r.nextInt(2048) , r.nextInt(2048));
testByte_constant_LT64B (r.nextInt(2048) , r.nextInt(2048));
testChar(lengths[i % lengths.length] >> 1, r.nextInt(2048) , r.nextInt(2048));
testChar_constant_LT32B (r.nextInt(2048) , r.nextInt(2048));
testChar_constant_LT64B (r.nextInt(2048) , r.nextInt(2048));
testChar(lengths[i % lengths.length] >> 1, r.nextInt(2048) , r.nextInt(2048));
testChar_constant_LT32B (r.nextInt(2048) , r.nextInt(2048));
testChar_constant_LT64B (r.nextInt(2048) , r.nextInt(2048));
testInt(lengths[i % lengths.length] >> 2, r.nextInt(2048) , r.nextInt(2048));
testInt_constant_LT32B (r.nextInt(2048) , r.nextInt(2048));
testInt_constant_LT64B (r.nextInt(2048) , r.nextInt(2048));
testInt(lengths[i % lengths.length] >> 2, r.nextInt(2048) , r.nextInt(2048));
testInt_constant_LT32B (r.nextInt(2048) , r.nextInt(2048));
testInt_constant_LT64B (r.nextInt(2048) , r.nextInt(2048));
testLong(lengths[i % lengths.length] >> 3, r.nextInt(2048) , r.nextInt(2048));
testLong_constant_LT32B (r.nextInt(2048) , r.nextInt(2048));
testLong_constant_LT64B (r.nextInt(2048) , r.nextInt(2048));
}
System.out.println("PASS : " + validate_ctr);
} catch (Exception e) {
System.out.println(e.getMessage());
testLong(lengths[i % lengths.length] >> 3, r.nextInt(2048) , r.nextInt(2048));
testLong_constant_LT32B (r.nextInt(2048) , r.nextInt(2048));
testLong_constant_LT64B (r.nextInt(2048) , r.nextInt(2048));
}
}
}