RFR: 8349206: j.u.l.Handler classes create deadlock risk via synchronized publish() method [v2]
David Beaumont
duke at openjdk.org
Fri Feb 14 15:18:56 UTC 2025
> 8349206: j.u.l.Handler classes create deadlock risk via synchronized publish() method.
>
> 1. Remove synchronization of calls to publish() in Handlers in java.util.logging package.
> 2. Add explanatory comments to various affected methods.
> 3. Add a test to ensure deadlocks no longer occur.
>
> Note that this change does not address issue in MemoryHandler (see JDK-8349208).
David Beaumont has updated the pull request incrementally with one additional commit since the last revision:
Reworking FileHandler so rotation occurs synchronously after the last log entry is written.
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/23491/files
- new: https://git.openjdk.org/jdk/pull/23491/files/601e88fd..11ba7701
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=23491&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=23491&range=00-01
Stats: 49 lines in 2 files changed: 32 ins; 14 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/23491.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23491/head:pull/23491
PR: https://git.openjdk.org/jdk/pull/23491
More information about the core-libs-dev
mailing list