On Thu, 11 May 2023 10:24:34 GMT, Jaikiran Pai <j...@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

Reply via email to