From owner-freebsd-threads@FreeBSD.ORG Tue Oct 11 22:34:06 2005 Return-Path: X-Original-To: threads@freebsd.org Delivered-To: freebsd-threads@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A75B216A420; Tue, 11 Oct 2005 22:34:06 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from blue.virtual-estates.net (aldan.algebra.com [216.254.65.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1BAC43D49; Tue, 11 Oct 2005 22:34:05 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from corbulon.video-collage.com (static-151-204-231-237.bos.east.verizon.net [151.204.231.237]) by blue.virtual-estates.net (8.13.4/8.13.4) with ESMTP id j9BMY4cx023968 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 Oct 2005 18:34:04 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from mteterin.us.murex.com (195-11.customer.cloud9.net [168.100.195.11]) by corbulon.video-collage.com (8.13.4/8.13.1) with ESMTP id j9BMXwxG014021 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 Oct 2005 18:33:58 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from mteterin.us.murex.com (mteterin@localhost [127.0.0.1]) by mteterin.us.murex.com (8.13.3/8.13.3) with ESMTP id j9BMXrb1017385; Tue, 11 Oct 2005 18:33:53 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by mteterin.us.murex.com (8.13.3/8.13.3/Submit) id j9BMXp81017384; Tue, 11 Oct 2005 18:33:51 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) X-Authentication-Warning: mteterin.us.murex.com: mteterin set sender to mi+mx@aldan.algebra.com using -f From: Mikhail Teterin Organization: Virtual Estates, Inc. To: re@freebsd.org Date: Tue, 11 Oct 2005 18:33:50 -0400 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510111833.51168.mi+mx@aldan.algebra.com> X-Virus-Scanned: ClamAV devel-20050525/1128/Mon Oct 10 21:30:06 2005 on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 Cc: threads@freebsd.org Subject: debug defines in libc_r on 6.0 X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 22:34:06 -0000 Hi! It seems, libc_r is still being built with -D_LOCK_DEBUG and -D_PTHREADS_INVARIANTS. I suspect, this is going to slow the thread operations somewhat: mi@mi:/usr/src (446) find lib/libc_r lib/libthr* -type f | xargs egrep _PTHREADS_INVARIANTS\|_LOCK_DEBUG lib/libc_r/Makefile:CFLAGS+=-D_LOCK_DEBUG lib/libc_r/Makefile:CFLAGS+=-D_PTHREADS_INVARIANTS lib/libc_r/uthread/pthread_private.h:#if defined(_PTHREADS_INVARIANTS) lib/libc_r/uthread/pthread_private.h:#if defined(_PTHREADS_INVARIANTS) lib/libc_r/uthread/pthread_private.h:/* Used for _PTHREADS_INVARIANTS checking. */ lib/libc_r/uthread/pthread_private.h:#ifdef _LOCK_DEBUG lib/libc_r/uthread/pthread_private.h:#if defined(_PTHREADS_INVARIANTS) lib/libc_r/uthread/uthread_exit.c: /* XXX - Do we want abort to be conditional on _PTHREADS_INVARIANTS? */ lib/libc_r/uthread/uthread_exit.c:#if defined(_PTHREADS_INVARIANTS) lib/libc_r/uthread/uthread_mutex.c:#if defined(_PTHREADS_INVARIANTS) lib/libc_r/uthread/uthread_priority_queue.c:#if defined(_PTHREADS_INVARIANTS) lib/libc_r/uthread/uthread_sig.c:#if defined(_PTHREADS_INVARIANTS) lib/libthr/Makefile:CFLAGS+=-D_PTHREADS_INVARIANTS -Wall lib/libthr/thread/thr_mutex.c:#if defined(_PTHREADS_INVARIANTS) lib/libthr/thread/thr_private.h:#ifdef _PTHREADS_INVARIANTS Should not these be undefined in the 6.0-RELEASE? -mi