This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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. 


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]