cvs commit: src/lib/libpthread/thread thr_mutex.c

Daniel Eischen deischen at
Mon Nov 1 14:32:33 PST 2004

On Mon, 1 Nov 2004, [iso-8859-1] Dag-Erling Sm=F8rgrav wrote:

> Daniel Eischen <deischen at> writes:
> > We use error check mutexes by default, which is allowed by the
> > spec, because they come at no cost [...]
> They come at considerable cost.  They make it impossible to use the
> Boehm garbage collector in threaded programs, for instance, because
> pthread_mutex_init() calls malloc() which tries to use a mutex.  There
> is probably a significant performance penalty as well.

No, they all call malloc() since all mutexes are currently pointers
to thingies.

Dan Eischen

More information about the cvs-src mailing list