Use rel semantics of cas instead of acq semantics with full barrier before it in...
commitbea0ac1d8703091294fe5822d982591c849b5458
authorJakub Jelinek <jakub@redhat.com>
Thu, 16 Jul 2009 14:24:50 +0000 (16 07:24 -0700)
committerUlrich Drepper <drepper@redhat.com>
Thu, 16 Jul 2009 14:24:50 +0000 (16 07:24 -0700)
tree1d7b20d187c218c9113de06d9c295ed9039f18af
parent55c4ce6885b577e2b29a4de674d4062a6882afe8
Use rel semantics of cas instead of acq semantics with full barrier before it in _int_free

The following patch fixes catomic_compare_and_exchange_*_rel definitions
(which were never used and weren't correct) and uses
catomic_compare_and_exchange_val_rel in _int_free.  Comparing to the
pre-2009-07-02 --enable-experimental-malloc state the generated code should
be identical on all arches other than ppc/ppc64 and on ppc/ppc64 should use
lwsync instead of isync barrier.
ChangeLog
include/atomic.h
malloc/malloc.c