JavaMemoryModel: Double-Checked-Locking - revisited

From: David Holmes (dholmes@dltech.com.au)
Date: Mon May 19 2003 - 23:53:15 EDT


In Intel's software developer manual for developing multi-threaded
applications:

http://cedar.intel.com/media/pdf/threading/developing_multithreaded_ap
plications.pdf

Section 4.5 recommends you use DCL and near the end has this note:

"DCL should be used with caution in Java because some Java Virtual
Machines
implement the Java Memory Model incorrectly." [ref Brian Goetz's Feb
2001 JavaWorld article]

Even though DCL probably works correctly, from a hardware perspective,
on most (older) IA-32 systems, this seems to be completely missing the
point.

David Holmes

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



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