java/lang/ThreadGroup/Stop.java fails intermittently, even after JDK-8132548
But now looks like not test issue anymore.
----------System.err:(15/874)----------
java.lang.InterruptedException
at java.lang.Object.wait(java.base@9-ea/Native Method)
at java.lang.Thread.join(java.base@9-ea/Thread.java:1352)
at java.lang.Thread.join(java.base@9-ea/Thread.java:1426)
at Stop.main(Stop.java:65)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:535)
at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:226)
at java.lang.Thread.run(java.base@9-ea/Thread.java:843)
The exception is from Thread.join(), from line 65:
// Launch two threads as part of the same thread group
first.start();
second.start();
// Check that the second thread is terminated when the
// first thread terminates the thread group.
65: second.join();
// Test passed - if never get here the test times out and fails.
Also note that .jtr log shows the "main" elapsed 120 seconds:
...
#section:main
----------messages:(4/123)----------
command: main Stop
reason: Assumed action based on file name: run main Stop
Mode: agentvm
elapsed time (seconds): 120.005
...
Is the "main" (and all) thread be Interrupted by jtreg? (120 seconds is the jtreg "default timeout" )