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


   > > @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
   
   @mzbonnt You should look at the differences more carefully, considering 
multiple threads interweaving within these methods. 


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to