Atomic fetch and and/or/xor/etc., are not natively supported on amd64/x86_64, so they're simulated with CAS loops. There's a special case when this is unnecessary: when the fetched result is never used. In this case, it might be better to use a non-fetching operation instead.
. *** This bug has been marked as a duplicate of bug 87548 ***