]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove full barrier from the amd64 atomic_load_acq_*(). Strong
authorKonstantin Belousov <kib@FreeBSD.org>
Tue, 28 Jul 2015 07:04:51 +0000 (07:04 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Tue, 28 Jul 2015 07:04:51 +0000 (07:04 +0000)
commit1d1ec02c44239802aa3fcc176172aa17354b7efd
tree3546ddd2119002178d1afc396e245c4d22e997ba
parentb4c0214605ab618c09926b780f3f915afe148f72
Remove full barrier from the amd64 atomic_load_acq_*().  Strong
ordering semantic of x86 CPUs makes only the compiler barrier
neccessary to give the acquire behaviour.

Existing implementation ensured sequentially consistent semantic for
load_acq, making much stronger guarantee than required by standard's
definition of the load acquire.  Consumers which depend on the barrier
are believed to be identified and already fixed to use proper
operations.

Noted by: alc (long time ago)
Reviewed by: alc, bde
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
sys/amd64/include/atomic.h