From owner-cvs-src@FreeBSD.ORG Wed Jun 9 18:40:48 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 463B916A4CE; Wed, 9 Jun 2004 18:40:48 +0000 (GMT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32AB043D31; Wed, 9 Jun 2004 18:40:48 +0000 (GMT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc12) with ESMTP id <2004060918404501400c6t6de>; Wed, 9 Jun 2004 18:40:45 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA59354; Wed, 9 Jun 2004 11:40:46 -0700 (PDT) Date: Wed, 9 Jun 2004 11:40:45 -0700 (PDT) From: Julian Elischer To: "M. Warner Losh" In-Reply-To: <20040609.121919.18287197.imp@bsdimp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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-src@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 09 Jun 2004 18:40:48 -0000 On Wed, 9 Jun 2004, M. Warner Losh wrote: > 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. > certainly. Documentation of acceptable coding practices is almost as good as having code to do it.. (as long as people can find the document) > Warner >