Subj : Re: double-checked locking in C To : comp.programming.threads From : Joseph Seigh Date : Tue Jul 05 2005 11:05 pm David Hopwood wrote: > amorox@gmail.com wrote: > >> >> I know that in Java there were problems with this idiom due to the >> memory operation reorderings and these have been apparently solved in >> Java 1.4. > > > It has not been "solved"; it was not a goal of the new memory model to > solve it. Just don't use this idiom in Java. > The lock-free stuff in Java depends on it being solved I would think. -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .