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: malloc and threads


> From: David Boreham [mailto:david_list@boreham.org] 
> > XScale is an ARM based processor 
> 
> Perhaps there is a bug in the XScale locking code
> or in the CPU hardware ?

> From: "Mathew, Tisson K" <tisson.k.mathew@intel.com>

> I that case malloc protected with mutex should also fail, im not seeing that

Note that glibc malloc exercises pthread_mutex_trylock extensively as
                                               ^^^
well as pthread_mutex_lock.  Maybe that's a place to start looking?
Also, you could try to replace all pthread_mutex calls with spinlocks
and see whether it makes a difference.

Regards,
Wolfram.


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