This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: PATCH: Add memory barrier to malloc
On Sat, May 03, 2003 at 01:30:00PM -0700, Ulrich Drepper wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> H. J. Lu wrote:
>
> > I should have waited a while. MEMORY_BARRIER is not available in nptl.
>
> More importantly, you should have looked at what is already there. See
> include/atomic.h.
>
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.
H.J.