https://bugs.kde.org/show_bug.cgi?id=369459

--- Comment #14 from Peter Maydell <peter.mayd...@linaro.org> ---
I think the assertion about "real world code not caring" is based on some
popular CPUs not having an ll/sc combination (like x86!), and so portable
atomicity primitives can't assume you don't get ABA because they have to work
with a lowest-common-denominator cmpxchg CPU.

I think your suggestion in comment 11 about trying to autodetect this kind of
core sounds extremely fragile. The architecture says "don't do this", and
implementations can take advantage, including perhaps being able to make
forward progress in some cases even if not in others, so you might find your
autodetect test code passed but later generated code didn't. Plus on big.LITTLE
you might later be running on a CPU with a different microarchitecture from the
one you ran your autodetection on...

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to