RFR: 8282666: nsk/jvmti/PopFrame/popframe004 failed with: TEST FAILED: 30 JVMTI events were generated by the function PopFrame()

Alex Menkov amenkov at openjdk.org
Fri Jul 29 19:59:40 UTC 2022


On Fri, 29 Jul 2022 19:08:35 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:

> The nsk.jvmti test popframe004 is failing with the JVM args:
>   `-Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:-TieredCompilation`
> 
> The call to join() below should not have a timeout parameter.
> 
>         try {
>             if (popFrameClsThr.isAlive())
>                 popFrameClsThr.join(2000);
>         } catch (InterruptedException e) {
>             out.println("TEST INCOMPLETE: caught " + e);
>             totRes = FAILED;
>         }
>         if (popFrameClsThr.isAlive()) {
>             out.println("TEST FAILED: thread with the method of " +
>                 "the popped frame is still alive");
>             totRes = FAILED;
>         } 
> 
> If the execution is slow by any reason (e.g. because of a compilation) then it causes the main thread to fail joining with the target thread which is why the test is failing with these symptoms.
> 
> This problem is hard to reproduce even in 1000's of runs on mach5.

Marked as reviewed by amenkov (Reviewer).

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

PR: https://git.openjdk.org/jdk/pull/9689


More information about the serviceability-dev mailing list