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). ------------- Commit messages: - Fix JavaDoc error. - Restore original patch. Changes: https://git.openjdk.org/jdk/pull/24504/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24504&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8353683 Stats: 453 lines in 8 files changed: 430 ins; 8 del; 15 mod Patch: https://git.openjdk.org/jdk/pull/24504.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/24504/head:pull/24504 PR: https://git.openjdk.org/jdk/pull/24504