On 18-Jul-14, at 8:38 PM, Carlos O'Donell wrote:
On Fri, Jul 18, 2014 at 6:12 PM, John David Anglin <dave.anglin@xxxxxxxx
> wrote:
There is no testing beyond the general testing of atomics in GCC.
There is
masking
in the GCC code but I think this is racy. Another thread might
modify the
masked data
during the CAS operation and this might be lost. I've never seen
it in the
real world though.
The race is real IMO, but you're right that it might be hard to
trigger.
My opinion is that the only way you can do this is to write new LWS
CAS variants that do half-word or byte loads, compares and stores. You
can't touch the surrounding data safely.
I totally agree.
Dave
--
John David Anglin dave.anglin@xxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html