RFR: 8307535: java.util.logging.Handlers should be more VirtualThread friendly [v3]

Daniel Fuchs dfuchs at openjdk.org
Thu May 11 11:02:42 UTC 2023


On Thu, 11 May 2023 10:24:34 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

>> Ah - I see that `PrintStream` lock can be accessed through SharedSecrets... Hmmm. OK - then maybe I should leave InternalLock alone and just use ReentrantLock. Let me prototype that.
>
>> Ah - I see that PrintStream lock can be accessed through SharedSecrets
> 
> I think Alan was talking about the 
> 
> protected Object lock
> 
> on `java.io.Reader` and `java.io.Writer` classes which can be manipulated by their sub-classes and that's what prompted the creation of the new type, - `InternalLock` class.

Yes - but InternalLock is not only used in those cases.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/13832#discussion_r1190998001


More information about the core-libs-dev mailing list