The following test failed in the JDK20 CI:
gtest/MetaspaceUtilsGtests.java
Here's a snippet from the log file:
----------System.out:(36/2327)*----------
Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-20+5-193\\windows-x64-open.test\\hotspot\\gtest\\server\\gtestLauncher.exe -jdk c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-20+5-193\\windows-x64-open.jdk\\jdk-20 --gtest_output=xml:test_result.xml --gtest_catch_exceptions=0 --gtest_filter=MetaspaceUtils* -XX:-UseCompressedClassPointers]
[2022-07-02T14:43:50.865805200Z] Gathering output for process 84116
[2022-07-02T14:43:51.008966700Z] Waiting for completion for process 84116
[2022-07-02T14:43:51.008966700Z] Waiting for completion finished for process 84116
Output and diagnostic info for process 84116 was saved into 'pid-84116-output.log'
Note: Google Test filter = MetaspaceUtils*
[==========] Running 6 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 6 tests from MetaspaceUtils
[ RUN ] MetaspaceUtils.reserved_vm
[ OK ] MetaspaceUtils.reserved_vm (0 ms)
[ RUN ] MetaspaceUtils.reserved_compressed_class_pointers_vm
[ OK ] MetaspaceUtils.reserved_compressed_class_pointers_vm (0 ms)
[ RUN ] MetaspaceUtils.committed_vm
[ OK ] MetaspaceUtils.committed_vm (0 ms)
[ RUN ] MetaspaceUtils.committed_compressed_class_pointers_vm
[ OK ] MetaspaceUtils.committed_compressed_class_pointers_vm (0 ms)
[ RUN ] MetaspaceUtils.non_compressed_class_pointers_vm
[ OK ] MetaspaceUtils.non_compressed_class_pointers_vm (0 ms)
[ RUN ] MetaspaceUtils.get_statistics_vm
s\\open\\test\\hotspot\\gtest\\metaspace\\test_metaspaceUtils.cpp(93): error: Expected: (stats.used()) < (stats.committed()), actual: 3932160 vs 3932160
s\\open\\test\\hotspot\\gtest\\metaspace\\test_metaspaceUtils.cpp(93): error: Expected: (stats.used()) < (stats.committed()), actual: 3932160 vs 3932160
[ FAILED ] MetaspaceUtils.get_statistics_vm (1 ms)
[----------] 6 tests from MetaspaceUtils (113 ms total)
[----------] Global test environment tear-down
[==========] 6 tests from 1 test case ran. (113 ms total)
[ PASSED ] 5 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] MetaspaceUtils.get_statistics_vm
1 FAILED TEST
ERROR: RUN_ALL_TESTS() failed. Error 1
[2022-07-02T14:43:51.008966700Z] Waiting for completion for process 84116
[2022-07-02T14:43:51.008966700Z] Waiting for completion finished for process 84116
----------System.err:(10/633)----------
java.lang.AssertionError: gtest execution failed; exit code = 2. the failed tests: [MetaspaceUtils::get_statistics_vm, MetaspaceUtils::get_statistics_vm]
at GTestWrapper.main(GTestWrapper.java:98)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
at java.base/java.lang.Thread.run(Thread.java:1589)
JavaTest Message: Test threw exception: java.lang.AssertionError
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: gtest execution failed; exit code = 2. the failed tests: [MetaspaceUtils::get_statistics_vm, MetaspaceUtils::get_statistics_vm]
gtest/MetaspaceUtilsGtests.java
Here's a snippet from the log file:
----------System.out:(36/2327)*----------
Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-20+5-193\\windows-x64-open.test\\hotspot\\gtest\\server\\gtestLauncher.exe -jdk c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-20+5-193\\windows-x64-open.jdk\\jdk-20 --gtest_output=xml:test_result.xml --gtest_catch_exceptions=0 --gtest_filter=MetaspaceUtils* -XX:-UseCompressedClassPointers]
[2022-07-02T14:43:50.865805200Z] Gathering output for process 84116
[2022-07-02T14:43:51.008966700Z] Waiting for completion for process 84116
[2022-07-02T14:43:51.008966700Z] Waiting for completion finished for process 84116
Output and diagnostic info for process 84116 was saved into 'pid-84116-output.log'
Note: Google Test filter = MetaspaceUtils*
[==========] Running 6 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 6 tests from MetaspaceUtils
[ RUN ] MetaspaceUtils.reserved_vm
[ OK ] MetaspaceUtils.reserved_vm (0 ms)
[ RUN ] MetaspaceUtils.reserved_compressed_class_pointers_vm
[ OK ] MetaspaceUtils.reserved_compressed_class_pointers_vm (0 ms)
[ RUN ] MetaspaceUtils.committed_vm
[ OK ] MetaspaceUtils.committed_vm (0 ms)
[ RUN ] MetaspaceUtils.committed_compressed_class_pointers_vm
[ OK ] MetaspaceUtils.committed_compressed_class_pointers_vm (0 ms)
[ RUN ] MetaspaceUtils.non_compressed_class_pointers_vm
[ OK ] MetaspaceUtils.non_compressed_class_pointers_vm (0 ms)
[ RUN ] MetaspaceUtils.get_statistics_vm
s\\open\\test\\hotspot\\gtest\\metaspace\\test_metaspaceUtils.cpp(93): error: Expected: (stats.used()) < (stats.committed()), actual: 3932160 vs 3932160
s\\open\\test\\hotspot\\gtest\\metaspace\\test_metaspaceUtils.cpp(93): error: Expected: (stats.used()) < (stats.committed()), actual: 3932160 vs 3932160
[ FAILED ] MetaspaceUtils.get_statistics_vm (1 ms)
[----------] 6 tests from MetaspaceUtils (113 ms total)
[----------] Global test environment tear-down
[==========] 6 tests from 1 test case ran. (113 ms total)
[ PASSED ] 5 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] MetaspaceUtils.get_statistics_vm
1 FAILED TEST
ERROR: RUN_ALL_TESTS() failed. Error 1
[2022-07-02T14:43:51.008966700Z] Waiting for completion for process 84116
[2022-07-02T14:43:51.008966700Z] Waiting for completion finished for process 84116
----------System.err:(10/633)----------
java.lang.AssertionError: gtest execution failed; exit code = 2. the failed tests: [MetaspaceUtils::get_statistics_vm, MetaspaceUtils::get_statistics_vm]
at GTestWrapper.main(GTestWrapper.java:98)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
at java.base/java.lang.Thread.run(Thread.java:1589)
JavaTest Message: Test threw exception: java.lang.AssertionError
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: gtest execution failed; exit code = 2. the failed tests: [MetaspaceUtils::get_statistics_vm, MetaspaceUtils::get_statistics_vm]