RFR: 8349206: j.u.l.Handler classes create deadlock risk via synchronized publish() method [v11]

Daniel Fuchs dfuchs at openjdk.org
Mon Mar 3 10:47:56 UTC 2025


On Mon, 3 Mar 2025 10:15:53 GMT, David Beaumont <duke at openjdk.org> wrote:

>> 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:
> 
>   Final round of comment tweaks.

LGTM

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

Marked as reviewed by dfuchs (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/23491#pullrequestreview-2653752358


More information about the core-libs-dev mailing list