On Thu, 29 Jan 2026 21:08:06 GMT, Naoto Sato <[email protected]> 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.

This pull request has now been integrated.

Changeset: 79229193
Author:    Naoto Sato <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/792291937f7403c9acf6c5eacf284c26c2a2857b
Stats:     326 lines in 4 files changed: 173 ins; 102 del; 51 mod

8340830: Console.readLine() and Console.printf() are mutually blocking

Reviewed-by: jlu, jpai, rriggs, vyazici

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

PR: https://git.openjdk.org/jdk/pull/29493

Reply via email to