The issue may happen if ThreadGroup::destroy is called when one of its children still has active threads. In that case, destroy() will throw an IllegalStateException, but only after the group has been marked as destroyed.
- relates to
-
JDK-8219197 ThreadGroup.enumerate() may return wrong value
- Closed
-
JDK-8252885 Re-implement ThreadGroup
- Closed