RFR: 8307535: java.util.logging.Handlers should be more VirtualThread friendly
Daniel Fuchs
dfuchs at openjdk.org
Fri May 5 13:52:18 UTC 2023
Several Handlers class use monitors to synchronize when formatting / publishing LogRecords.
When logging within a VirtualThread, holding this monitor can cause the carrier thread to be pinned.
Handlers could use jdk.internal.misc.InternalLock, in a similar way to some java.io classes (such as PrintStream) to avoid pinning the carrier thread.
-------------
Commit messages:
- 8307535
Changes: https://git.openjdk.org/jdk/pull/13832/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13832&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8307535
Stats: 177 lines in 4 files changed: 160 ins; 1 del; 16 mod
Patch: https://git.openjdk.org/jdk/pull/13832.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/13832/head:pull/13832
PR: https://git.openjdk.org/jdk/pull/13832
More information about the core-libs-dev
mailing list