Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8307535

java.util.logging.Handlers should be more VirtualThread friendly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • None
    • 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.

            dfuchs Daniel Fuchs
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: