java/util/Arrays/TimSortStackSize2.java could fail with "Initial heap size set to a larger value than the maximum heap size" in case small -Xmx is passed during test execution.
Failure example:
----------System.out:(5/611)----------
compressedOops: false; Test will be started with "-Xms770m"
Command line: [linux-x64-debug.jdk/jdk-10/fastdebug/bin/java -ea -esa -Xmx512m -Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:+TieredCompilation -XX:+IgnoreUnrecognizedVMOptions -XX:+AggressiveOpts -XX:-UseCompressedOops -Xms770m TimSortStackSize2 67108864 ]
Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size
----------System.err:(38/2136)----------
stdout: [Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size
];
stderr: []
exitValue = 1