malloc and threads

Wolfram Gloger Wolfram.Gloger@dent.med.uni-muenchen.de
Thu Nov 28 04:39:00 GMT 2002


> 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.



More information about the Libc-alpha mailing list