JavaMemoryModel: From "Elements of Java Style".... :-(

From: Bill Pugh (pugh@cs.umd.edu)
Date: Thu Jul 27 2000 - 16:16:37 EDT


 From "The Elements of Java Style", by Allan Vermeulen et al., page 84:

        #99. Use the double-check pattern for synchronized initialization.

They give the standard, broken double-check idiom.

This double-check idiom is like a roach infestation. It doesn't
matter how many of them you crush under your shoe, more of them crawl
out from under the refrigerator.

        Bill
-------------------------------
JavaMemoryModel mailing list - http://www.cs.umd.edu/~pugh/java/memoryModel



This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:26 EDT