orpiske commented on PR #13556:
URL: https://github.com/apache/camel/pull/13556#issuecomment-2012805450

   MHO, as long as we retain the second `if (entry == null) {` we should be 
fine (i.e.: to avoid a TOCTOU issue). 
   
   Obs.: without measuring is hard to attest if the lock is a bottleneck , but 
I think the proposed fix makes sense. 


-- 
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: commits-unsubscr...@camel.apache.org

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

Reply via email to