From owner-cvs-src@FreeBSD.ORG Mon Nov 1 22:32:33 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C68116A4CE; Mon, 1 Nov 2004 22:32:33 +0000 (GMT) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 476AB43D1F; Mon, 1 Nov 2004 22:32:33 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) iA1MWUx8001384; Mon, 1 Nov 2004 17:32:30 -0500 (EST) Date: Mon, 1 Nov 2004 17:32:30 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: =?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?= In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) cc: Brian Fundakowski Feldman cc: src-committers@freebsd.org cc: cvs-all@freebsd.org cc: cvs-src@freebsd.org Subject: Re: cvs commit: src/lib/libpthread/thread thr_mutex.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Daniel Eischen List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Nov 2004 22:32:33 -0000 On Mon, 1 Nov 2004, [iso-8859-1] Dag-Erling Sm=F8rgrav wrote: > Daniel Eischen 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