[concurrency-interest] AtomicReferenceweakCompareAndSet "Mayfailspuriously"?

Chris Purcell chris.purcell.39 at gmail.com
Mon May 29 15:54:51 EDT 2006


> More worrisome is the fact that there isn't really any meaningful  
> use case for a happens-before-free weakCompareAndSet on an  
> AtomicReference (AFAICT).

How about for storing immutable objects? Doesn't constructor code  
happen-before subsequent writes?

Cheers,
Chris Purcell



More information about the Concurrency-interest mailing list