Integrated: 8353683: [REDO] j.u.l.Handler classes create deadlock risk via synchronized publish() method
David Beaumont
duke at openjdk.org
Thu Apr 10 16:03:44 UTC 2025
On Tue, 8 Apr 2025 11:00:27 GMT, David Beaumont <duke at openjdk.org> wrote:
> 8353683: 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).
This pull request has now been integrated.
Changeset: 36e11b68
Author: David Beaumont <david.beaumont at oracle.com>
Committer: Daniel Fuchs <dfuchs at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/36e11b6827d5065f75a52887e1200b22cb3cdd40
Stats: 453 lines in 8 files changed: 430 ins; 8 del; 15 mod
8353683: [REDO] j.u.l.Handler classes create deadlock risk via synchronized publish() method
Reviewed-by: smarks
-------------
PR: https://git.openjdk.org/jdk/pull/24504
More information about the core-libs-dev
mailing list