From owner-cvs-all@FreeBSD.ORG Wed Jun 9 18:22:04 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6EA1216A4CE; Wed, 9 Jun 2004 18:22:04 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17A4C43D45; Wed, 9 Jun 2004 18:22:04 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i59IJ2dE045779; Wed, 9 Jun 2004 12:19:02 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 09 Jun 2004 12:19:19 -0600 (MDT) Message-Id: <20040609.121919.18287197.imp@bsdimp.com> To: julian@elischer.org From: "M. Warner Losh" In-Reply-To: References: <56935.1086803930@critter.freebsd.dk> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: src-committers@freebsd.org cc: pjd@freebsd.org cc: cvs-src@freebsd.org cc: cvs-all@freebsd.org cc: phk@phk.freebsd.dk cc: bmilekic@freebsd.org cc: nate@root.org Subject: Re: cvs commit: src/sys/kern kern_proc.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2004 18:22:04 -0000 In message: Julian Elischer writes: : : : On Wed, 9 Jun 2004, Poul-Henning Kamp wrote: : : > In message , Ju : > lian Elischer writes: : > : > >As I've said before and will continue to say.. : > >"We need a more formal model of dealing with reference counts" : > > : > >i.e. : > > : > >we should get a set of reference counting primatives and make it WELL : > >DOCUMENTED as to how they should be used.. : > : > And as others have replied: It is seldom worth it from code clarity : > or performance wise. : : few have replied in that way.. : most have agreed that it is worth persuing.. We should document how to do refcounting. Either from a atomic point of view (which has issues) or from the mutex point of view (which also has issues). I think that everyone agrees on that. Warner