RFR: 8307535: java.util.logging.Handlers should be more VirtualThread friendly [v3]
Daniel Fuchs
dfuchs at openjdk.org
Thu May 11 18:34:47 UTC 2023
On Fri, 5 May 2023 18:38:28 GMT, Daniel Fuchs <dfuchs at 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.
>
> Daniel Fuchs has updated the pull request incrementally with one additional commit since the last revision:
>
> Use locks consistently
@AlanBateman I dropped `InternalLock` and use `ReentrantLock` directly. No other change compared to previous version.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13832#issuecomment-1544488656
More information about the core-libs-dev
mailing list