This is the mail archive of the
mailing list for the glibc project.
Re: PATCH: Add memory barrier to malloc
On Sat, May 03, 2003 at 03:05:24PM -0700, Ulrich Drepper wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> H. J. Lu wrote:
> > Are you proposing to remove locks from malloc or just use compare/swap
> > with locks? Removing locks sounds a good idea if it is feasible.
> I means that there are memory barrier macros in atomic.h.
I only found atomic_compare_and_exchange_val_acq and
atomic_compare_and_exchange_bool_acq in sysdeps/generic/bits/atomic.h.
It is redundant to use with lock held.