Double-Checked Locking doesn't work in Java
Brought to you by:
schenksj
You use Double-Checked Locking in
org/openemcee/microflow/frontend/MicroflowFactory.java,
but that's not guaranteed to work.
Read
http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
for more information.
Logged In: YES
user_id=137043
Hi,
Thank you very much for the feedback. This should be ok due
to the fact that the double-checked locking is used as a
performance tweak. If 2 threads get in the intializer
block, we'll simply process the configs twice, and last in
to the cache wins.
Regards,
Scott