RFR: 8340830: Console.readLine() and Console.printf() are mutually blocking [v8]
Naoto Sato
naoto at openjdk.org
Tue Feb 3 20:15:13 UTC 2026
> 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
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/29493/files
- new: https://git.openjdk.org/jdk/pull/29493/files/fed88b18..dc7ae4d4
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=29493&range=07
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=29493&range=06-07
Stats: 7 lines in 1 file changed: 6 ins; 1 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/29493.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/29493/head:pull/29493
PR: https://git.openjdk.org/jdk/pull/29493
More information about the core-libs-dev
mailing list