RFR: 8340830: Console.readLine() and Console.printf() are mutually blocking [v4]

Naoto Sato naoto at openjdk.org
Mon Feb 2 22:07:53 UTC 2026


On Mon, 2 Feb 2026 21:46:19 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:

>  Do we also have tests to verify that synchronization is not broken? If not, do we need to add them?

I don't think that is necessary, as those removed locks are simply ensuring the underlying read/write locks in StreamEncoder/Decoder, and those underlying synchronization should have been covered via the public `InputStreamReader` and/or `OutputStreamWriter`, which shares the underlying implementation.

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

PR Comment: https://git.openjdk.org/jdk/pull/29493#issuecomment-3837582326


More information about the core-libs-dev mailing list