On Fri, 4 Jun 2021 10:53:42 GMT, Maurizio Cimadamore <mcimadam...@openjdk.org> 
wrote:

> 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!).

Thumbs up!

-XX:-VerifyDependencies is useful for getting around the non-release
bits slowness added by the new CHA based stuff added by:
    JDK-8266074 Vtable-based CHA implementation

-------------

Marked as reviewed by dcubed (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/4355

Reply via email to