JDK-8164565 : java/lang/ThreadGroup/Stop.java: fails java.lang.ThreadDeath
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-08-22
  • Updated: 2016-08-26
  • Resolved: 2016-08-26
Related Reports
Duplicate :  
Description
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