Fix atomic_full_barrier on x86 and x86_64.
commitc47ca9647f9b72692e62f94fe468cd5568f49129
authorTorvald Riegel <triegel@redhat.com>
Wed, 29 Oct 2014 09:34:36 +0000 (29 10:34 +0100)
committerTorvald Riegel <triegel@redhat.com>
Tue, 23 Jun 2015 17:20:52 +0000 (23 19:20 +0200)
tree724bfcf502ac32b1117915e731dfad53083cf272
parentb2faf4eadf5e9e9a71abcfe4da71fad91707ccac
Fix atomic_full_barrier on x86 and x86_64.

This fixes BZ #17403 by defining atomic_full_barrier,
atomic_read_barrier, and atomic_write_barrier on x86 and x86_64.  A full
barrier is implemented through an atomic idempotent modification to the
stack and not through using mfence because the latter can supposedly be
somewhat slower due to having to provide stronger guarantees wrt.
self-modifying code, for example.
ChangeLog
NEWS
sysdeps/i386/i486/bits/atomic.h
sysdeps/x86_64/bits/atomic.h