RFR: 8217827: [Graal] Some vmTestbase/nsk/jvmti/ResourceExhausted tests failing
Daniil Titov
daniil.x.titov at oracle.com
Fri Mar 22 20:53:15 UTC 2019
Please review the change that fixes the failure of the test when running with Graal.
The problem here is that the test consumes all memory before JVMCI runtime is fully initialized. As a result the call to JVMCIRuntime::get_HotSpotJVMCIRuntime(CHECK_EXIT)
at src/hotspot/share/jvmci/jvmciCompiler.cpp:132 throws OutOfmemoryError that is caught by CHECK_EXIT macro that in turn calls JVMCICompiler::exit_on_pending_exception that performs vm_exit(-1).
The fix increases the maximum heap size the test uses and adds a delay to ensure the JVMCI Runtime is fully initialized before proceeding with provoking OutOfMemoryError.
Before the change the test failure rate in Mach5 builds was about 25% . With this change after 900 rounds in Mach5 no failure was detected. The test execution time with the change is 50 second.
Webrev: http://cr.openjdk.java.net/~dtitov/8217827/webrev.01/
Bug: https://bugs.openjdk.java.net/browse/JDK-8217827
Thanks!
--Daniil
More information about the serviceability-dev
mailing list