Duplicate :
|
java/lang/ThreadGroup/Stop.java may fail with java.lang.ThreadDeath: java.lang.LinkageError at java.lang.invoke.MethodHandleNatives.linkMethodImpl(java.base@9-internal/MethodHandleNatives.java:386) at java.lang.invoke.MethodHandleNatives.linkMethod(java.base@9-internal/MethodHandleNatives.java:366) at java.util.concurrent.locks.AbstractQueuedSynchronizer$Node.compareAndSetWaitStatus(java.base@9-internal/AbstractQueuedSynchronizer.java:521) at java.util.concurrent.locks.AbstractQueuedSynchronizer.doReleaseShared(java.base@9-internal/AbstractQueuedSynchronizer.java:727) at java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(java.base@9-internal/AbstractQueuedSynchronizer.java:1369) at java.util.concurrent.CountDownLatch.countDown(java.base@9-internal/CountDownLatch.java:292) at Stop.lambda$main$0(Stop.java:40) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) Caused by: java.lang.ThreadDeath at java.lang.Thread.stop(java.base@9-internal/Thread.java:948) at java.lang.ThreadGroup.stopOrSuspend(java.base@9-internal/ThreadGroup.java:698) at java.lang.ThreadGroup.stop(java.base@9-internal/ThreadGroup.java:610) at Stop.lambda$main$1(Stop.java:56) ... 1 more The failure was observed only twice with JDK9: on linux-x64 and on macOS