Re: JavaMemoryModel: On which JDK 1.4 VMs is "volatile access" already compliant with the proposed JDK 1.5 JMM?

From: Doug Lea (dl@cs.oswego.edu)
Date: Mon Dec 01 2003 - 19:50:41 EST


> Just wondering. If I were wanting to avoid using the "thread-local hack"
> for the double-checked locking idiom on JDK 1.4 (just for those platforms
> where JDK 1.4 volatile is 1.5 proposed-JMM compliant), how would I go about
> determining the list of JDK 1.4 implementations that support the proposed
> JMM semantics for volatile.

I don't think there is a list anwhere (feel free to post one :-), but
when in doubt, you can run the "volatile spec compiance tests" that
Bill has at
  http://www.cs.umd.edu/~pugh/java/memoryModel/
Direct link: http://www.cs.umd.edu/~pugh/java/memoryModel/Volatiles.tar

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



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