Summary
Remove method java.lang.ThreadGroup.allowThreadSuspension(boolean)
.
Problem
ThreadGroup.allowThreadSuspension
dates from JDK 1.1 and classic VM. It was never specified. Archaeology suggests it controlled whether the GC suspended threads when an allocation failed and the GC was unable to satisfy. It appears to have interacted with a classic VM specific callback mechanism that could potentially free memory, allowing the GC to retry.
The method was deprecated in JDK 1.2 and seems to have been changed to be a no-op in the same release. It was deprecated for removal in Java 14.
We haven't found any evidence of usage in the eco system. A corpus analysis of 30378800 classes in 130997 artifacts found 0 usages of this method.
It is time to finally remove this method.
Solution
Remove the method.
Specification
Remove java.lang.ThreadGroup.allowThreadSuspension(boolean)
.
- csr of
-
JDK-8297295 Remove ThreadGroup.allowThreadSuspension
-
- Resolved
-