RFR: 8268227: java/foreign/TestUpcall.java still times out
Maurizio Cimadamore
mcimadamore at openjdk.java.net
Fri Jun 4 11:01:15 UTC 2021
Turns out that adding more timeout is a lost cause here. The root cause of the slowdown when running the test in debug build is:
https://bugs.openjdk.java.net/browse/JDK-8266074
Which has also caused related test issues:
https://bugs.openjdk.java.net/browse/JDK-8268095
So, the fix (at least temporarily) is to run method handle-heavy tests with the -XX:-VerifyDependency options.
On my machine, execution time of these tests on debug goes from 10 minutes down to less than 1.
Since `-XX:-VerifyDependencies` cannot be specified on non-debug build, the `-XX:+IgnoreUnrecognizedVMOptions` is also passed (thanks Vlad for the tip!).
-------------
Commit messages:
- Disable VerifyDependencies on TestUpcall/Downcall (when in debug mode)
Changes: https://git.openjdk.java.net/jdk/pull/4355/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4355&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8268227
Stats: 2 lines in 2 files changed: 0 ins; 0 del; 2 mod
Patch: https://git.openjdk.java.net/jdk/pull/4355.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/4355/head:pull/4355
PR: https://git.openjdk.java.net/jdk/pull/4355
More information about the core-libs-dev
mailing list