[jmm-dev] weakCompareAndSet memory semantics

Justin Sampson jsampson at guidewire.com
Wed Apr 20 22:59:28 UTC 2016


David Holmes wrote:

> Side question: why would you replace compareAndSet with 
> weakCompareAndSet when that would expose those ll/sc spurious
> failures?

The spurious failures are irrelevant because the whole thing is
wrapped in a retry loop anyway.

Cheers,
Justin


More information about the jmm-dev mailing list