malloc: Use C11 atomics rather than atomic_exchange_and_add
authorWilco Dijkstra <wdijkstr@arm.com>
Tue, 6 Sep 2022 15:49:01 +0000 (16:49 +0100)
committerWilco Dijkstra <wdijkstr@arm.com>
Tue, 6 Sep 2022 15:49:01 +0000 (16:49 +0100)
commit89d40cacd0aed35e2546513ce01924b879523e46
tree7584690730ae5c56b7b4421345c233feac64ce9e
parent76fe56020e7ef354685b2284580ac1630c078a2b
malloc: Use C11 atomics rather than atomic_exchange_and_add

Replace a few counters using atomic_exchange_and_add with
atomic_fetch_add_relaxed.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
malloc/malloc.c