Integrated: 8318306: java/util/Arrays/Sorting.java fails with "Array is not sorted at 8228-th position: 8251.0 and 8153.0"
Srinivas Vamsi Parasa
duke at openjdk.org
Tue Oct 24 18:34:44 UTC 2023
On Tue, 17 Oct 2023 22:57:34 GMT, Srinivas Vamsi Parasa <duke at openjdk.org> wrote:
> The goal of this PR is to address the failure of AVX512 sort test when the following JVM options are enabled (particularly `-XX:+DeoptimizeALot`) :
> `-Xcomp -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:-TieredCompilation -XX:+DeoptimizeALot`
>
> ### Description of the error:
> The sorting test (test/jdk/java/util/Arrays/Sorting.java) usually fails as shown below (from JBS bug report):
>
> [Arrays.parallelSort] 'Test with check sum' length = 10000, random = C0FFEE, m = 128, CHAR STAGGER
> [Arrays.parallelSort] 'Test with check sum' length = 10000, random = C0FFEE, m = 128, SHORT STAGGER
> [Arrays.parallelSort] 'Test with check sum' length = 10000, random = C0FFEE, m = 128, FLOAT STAGGER
> ----------System.err:(25/1026)----------
>
> *** TEST FAILED ***
>
> Array is not sorted at 8228-th position: 8251.0 and 8153.0
>
> java.lang.RuntimeException: Test failed
> at Sorting.fail(Sorting.java:644)
> at Sorting.checkSorted(Sorting.java:892)
> at Sorting.checkSorted(Sorting.java:841)
> at Sorting.checkWithCheckSum(Sorting.java:638)
> at Sorting.testWithCheckSum(Sorting.java:438)
> at Sorting.testBasic(Sorting.java:109)
> at Sorting.testCore(Sorting.java:122)
> at Sorting.testAll(Sorting.java:140)
> at Sorting.testAll(Sorting.java:135)
> at Sorting.main(Sorting.java:85)
> at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
> at java.base/java.lang.reflect.Method.invoke(Method.java:580)
> at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
> at java.base/java.lang.Thread.run(Thread.java:1570)
>
> JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed
> JavaTest Message: shutting down test
>
> STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test failed
>
> ---------------------------------
> ### Reproducing the error:
> #### (1) Using test/jdk/java/util/Arrays/Sorting.java:
> `jtreg -jdk:$JDK_HOME/build/linux-x86_64-server-slowdebug/jdk/ -Xcomp -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:-TieredCompilation -XX:+DeoptimizeALot -timeoutFactor:100 -verbose:all test/jdk/java/util/Arrays/Sorting.java`
>
> This failure was also reproduced independently by the author of this PR as follows:
> **example 1:**
>
>
> [Arrays.parallelSort] 'Test with check sum' length = 10000, random = C0FFEE, m = 2048, DOUBLE REPEATED
> [Arrays.parallelSort] 'Test with check sum' length = 10000, random = C0FFEE, m = 2048, INT DUPLICATED
> STDERR:
> *** TEST FAILED ***
> Array is not...
This pull request has now been integrated.
Changeset: 1f2a80b7
Author: vamsi-parasa <srinivas.vamsi.parasa at intel.com>
Committer: Sandhya Viswanathan <sviswanathan at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/1f2a80b78a6378b5b03f08a1e61614b8db40654c
Stats: 126 lines in 2 files changed: 92 ins; 14 del; 20 mod
8318306: java/util/Arrays/Sorting.java fails with "Array is not sorted at 8228-th position: 8251.0 and 8153.0"
Reviewed-by: thartmann, jbhateja
-------------
PR: https://git.openjdk.org/jdk/pull/16230
More information about the hotspot-compiler-dev
mailing list