This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: malloc and threads
- From: Wolfram Gloger <Wolfram dot Gloger at dent dot med dot uni-muenchen dot de>
- To: tisson dot k dot mathew at intel dot com
- Cc: david_list at boreham dot org, libc-alpha at sources dot redhat dot com
- Date: Thu, 28 Nov 2002 10:46:00 +0100 ("MET)
- Subject: Re: malloc and threads
- References: <288F9BF66CD9D5118DF400508B68C4460701D8AF@orsmsx113.jf.intel.com>
> 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.