Re: JavaMemoryModel: Dropping coherence is more complicated than we thought

From: Bill Pugh (pugh@cs.umd.edu)
Date: Mon Nov 08 1999 - 18:57:20 EST


Sorry if anyone got confused. I had the test backwards. It should be if (v==0):

int v;
int getValue() {
   if (v == 0)
     v = computeValue();
   return v;
   }
-------------------------------
JavaMemoryModel mailing list - http://www.cs.umd.edu/~pugh/java/memoryModel



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