You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by GitBox <gi...@apache.org> on 2021/11/09 02:19:23 UTC

[GitHub] [logging-log4j2] mzbonnt commented on pull request #597: LOG4J2-3060 LOG4J2-3185 Fix thread-safety issues in DefaultErrorHandler.

mzbonnt commented on pull request #597:
URL: https://github.com/apache/logging-log4j2/pull/597#issuecomment-963752378


   > @garydgregory, thanks so much for the review. `volatile` modifiers are not needed indeed, removed them. I have used the `synchronized` block around the smallest possible group to minimize the wait duration under contention.
   
   consider AtomicInteger or AtomicLong, which is more light weight than synchronized block


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org