RFR: 8297295: Remove ThreadGroup.allowThreadSuspension
Stuart Marks
smarks at openjdk.org
Mon Nov 28 21:57:53 UTC 2022
On Mon, 28 Nov 2022 13:13:09 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
>> Another small step in the multi-release/multi-year effort to remove cruft from Thread/ThreadGroup.
>>
>> java.lang.ThreadGroup.allowThreadSuspension(boolean) dates from JDK 1.1 and the Classic VM. The method controlled whether threads were suspended when the GC failed. It appears to have interacted with a callback mechanism that could potentially free memory, allowing the GC to retry. The method was never specified .
>>
>> The method was deprecated and changed to do nothing in JDK 1.2. It was deprecated for removal in Java 14.
>>
>> A corpus analysis of 30M classes in 130k artifacts found 0 usages of this method.
>>
>> It is time to finally remove this method. The compatibility impact should be negligible. Joe, Stuart and I discussed briefly and think early in JDK 21 is a good time to do this.
>
>> Joe, Stuart and I discussed briefly and think early in JDK 21 is a good time to do this.
>
> I guess, this would then mean this PR will be integrated into mainline after 8th December when the branch for JDK 20 will be forked https://openjdk.org/projects/jdk/20/#Schedule?
@jaikiran wrote:
> I guess, this would then mean this PR will be integrated into mainline after 8th December when the branch for JDK 20 will be forked
Yes, I'm sure this will go in soon after the JDK 20 fork.
-------------
PR: https://git.openjdk.org/jdk/pull/11373
More information about the core-libs-dev
mailing list