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. ------------- Commit messages: - 8282666: nsk/jvmti/PopFrame/popframe004 failed with: TEST FAILED: 30 JVMTI events were generated by the function PopFrame() Changes: https://git.openjdk.org/jdk/pull/9689/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9689&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8282666 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/9689.diff Fetch: git fetch https://git.openjdk.org/jdk pull/9689/head:pull/9689 PR: https://git.openjdk.org/jdk/pull/9689