RFR: 8284161: Implementation of Virtual Threads (Preview) [v4]
Mandy Chung
mchung at openjdk.java.net
Tue Apr 19 16:52:34 UTC 2022
On Tue, 19 Apr 2022 10:49:14 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> src/java.base/share/classes/java/lang/ref/ReferenceQueue.java line 61:
>>
>>> 59: private final Condition notEmpty;
>>> 60:
>>> 61: void signal() { notEmpty.signalAll(); }
>>
>> `signal()`, `await()` and `await(long)` methods are only used by `ReferenceQueue`. Good to make them private.
>
> They are overridden so can't be private.
That's right, I missed it.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8166
More information about the core-libs-dev
mailing list