Menu

#4 Double-Checked Locking doesn't work in Java

open-wont-fix
nobody
None
5
2006-05-30
2004-10-01
No

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.

Discussion

  • Scott J Schenkein

    • status: open --> open-wont-fix
     
  • Scott J Schenkein

    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

     

Log in to post a comment.