PATCH: Add memory barrier to malloc
H. J. Lu
hjl@lucon.org
Sun May 4 06:12:00 GMT 2003
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.
H.J.
More information about the Libc-alpha
mailing list