RFR: 8229517: Support for optional asynchronous/buffered logging [v14]

David Holmes david.holmes at oracle.com
Thu May 13 08:17:57 UTC 2021


On 13/05/2021 6:08 pm, Xin Liu wrote:
> thank you for the head-up!
> MutexLocker can take NULL and drive through!  definitely worth a shot.
> Interestingly, MonitorLocker can't do that.

You only need MonitorLocker if you want to use wait/notify, in which 
case NULL is not an option. :)

I've been watching the to-and-fro around the locking issues and 
Thread::current(). A Semaphore-based lock may be the cleanest solution.

David

> -------------
> 
> PR: https://git.openjdk.java.net/jdk/pull/3135
> 


More information about the hotspot-dev mailing list