os890 commented on issue #89: Test and Bugfix for null entitymanager when first 
usage is concurrent…
URL: https://github.com/apache/deltaspike/pull/89#issuecomment-492192794
 
 
   @rdomingonl:
   please see the second null check in initGlobalEntityManager
   
   just adding a second synchronized keyword directly before the one which is 
in place already would violate the "double-checked locking" approach and would 
just slow down the execution (once everything is initialized). you would end up 
with the same guaranty - just a bit slower.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to