From owner-cvs-src@FreeBSD.ORG Fri Jan 6 19:25:26 2006 Return-Path: X-Original-To: cvs-src@freebsd.org 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 3B0FD16A41F; Fri, 6 Jan 2006 19:25:26 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B42543D48; Fri, 6 Jan 2006 19:25:25 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 5447375 for multiple; Fri, 06 Jan 2006 14:26:54 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k06JPO9W026113; Fri, 6 Jan 2006 14:25:24 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: src-committers@freebsd.org Date: Fri, 6 Jan 2006 14:26:12 -0500 User-Agent: KMail/1.8.2 References: <200601061807.k06I7WHQ034800@repoman.freebsd.org> In-Reply-To: <200601061807.k06I7WHQ034800@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601061426.13700.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1234/Fri Jan 6 08:54:31 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: cvs-src@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/kern kern_mutex.c kern_sx.c subr_witness.c src/sys/sys _lock.h lock.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2006 19:25:26 -0000 On Friday 06 January 2006 01:07 pm, John Baldwin wrote: > jhb 2006-01-06 18:07:32 UTC > > FreeBSD src repository > > Modified files: > sys/kern kern_mutex.c kern_sx.c subr_witness.c > sys/sys _lock.h lock.h > Log: > Trim another pointer from struct lock_object (and thus from struct mtx > and struct sx). Instead of storing a direct pointer to a our lock_class > struct in lock_object, reserve 4 bits in the lo_flags field to serve as an > index into a global lock_classes array that contains pointers to the lock > classes. Only debugging code such as WITNESS or INVARIANTS checks and KTR > logging need to access the lock_class member, so this shouldn't add any > overhead to production kernels. It might add some slight overhead to > kernels using those debug options however. > > As with the previous set of changes to lock_object, this is going to > completely obliterate the kernel ABI, so be sure to recompile all your > modules. Forgot: Tested on: alpha, amd64, i386, sparc64 -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org