On Fri, 5 May 2023 13:43:43 GMT, Daniel Fuchs <dfu...@openjdk.org> wrote:
> 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. This pull request has now been integrated. Changeset: 3c68c352 Author: Daniel Fuchs <dfu...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/3c68c352fc3d3bff3d80bafcf04118759f4a2acf Stats: 309 lines in 6 files changed: 276 ins; 2 del; 31 mod 8307535: java.util.logging.Handlers should be more VirtualThread friendly Reviewed-by: jpai ------------- PR: https://git.openjdk.org/jdk/pull/13832