Date: Mon, 01 Nov 2004 23:24:15 +0100 From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) To: Daniel Eischen <deischen@freebsd.org> Cc: cvs-src@freebsd.org Subject: Re: cvs commit: src/lib/libpthread/thread thr_mutex.c Message-ID: <xzpzn212oog.fsf@dwp.des.no> In-Reply-To: <Pine.GSO.4.43.0410311647550.23450-100000@sea.ntplx.net> (Daniel Eischen's message of "Sun, 31 Oct 2004 17:00:46 -0500 (EST)") References: <Pine.GSO.4.43.0410311647550.23450-100000@sea.ntplx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpzn212oog.fsf>