Date: Mon, 1 Nov 2004 17:32:30 -0500 (EST) From: Daniel Eischen <deischen@freebsd.org> To: =?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?= <des@des.no> Cc: cvs-src@freebsd.org Subject: Re: cvs commit: src/lib/libpthread/thread thr_mutex.c Message-ID: <Pine.GSO.4.43.0411011730170.28562-100000@sea.ntplx.net> In-Reply-To: <xzpzn212oog.fsf@dwp.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 1 Nov 2004, [iso-8859-1] Dag-Erling Sm=F8rgrav wrote: > Daniel Eischen <deischen@freebsd.org> 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. --=20 Dan Eischen
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.43.0411011730170.28562-100000>