RFR: 8340830: Console.readLine() and Console.printf() are mutually blocking [v8]
Jaikiran Pai
jpai at openjdk.org
Wed Feb 4 01:16:36 UTC 2026
On Tue, 3 Feb 2026 20:15:13 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> Fixing an issue in Console where write is blocked if other thread is waiting to read, which is caused by unnecessary read/write locks. Removing those would solve the problem, as the read/write synchronization is performed at the StreamEn/Decoder level. One unrelated change is to refactor double-checked locking with LazyConstant.
>
> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:
>
> Restores the original race condition
Thank you Naoto for the updates. This looks good to me.
-------------
Marked as reviewed by jpai (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/29493#pullrequestreview-3748439707
More information about the core-libs-dev
mailing list