atomic_load_acq @ i386/amd64
Oleg Bulyzhin
oleg at freebsd.org
Fri Jan 3 21:01:49 UTC 2014
Hello.
I've got a question: why atomic_load_acq_* implemented on i386/amd64 archs
with locked cmpxchg instruction? Comment about this
(in /sys/(amd64|i386)/include/atomic.h) looks wrong for me. I believe
acquire/release semantics does not require StoreLoad barrier so simple aligned
load should be enough. (because acquire/release semantics does not guarantee
sequential consistency).
--
Oleg.
================================================================
=== Oleg Bulyzhin -- OBUL-RIPN -- OBUL-RIPE -- oleg at rinet.ru ===
================================================================
More information about the freebsd-hackers
mailing list