-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: None
-
Component/s: core-libs
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.
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.