> 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.

Daniel Fuchs has updated the pull request incrementally with one additional 
commit since the last revision:

  Use ReentrantLock directly

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/13832/files
  - new: https://git.openjdk.org/jdk/pull/13832/files/282c6e1b..ce4238f1

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=13832&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=13832&range=02-03

  Stats: 5 lines in 1 file changed: 0 ins; 1 del; 4 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

Reply via email to