cvs commit: src/sys/kern kern_proc.c

M. Warner Losh imp at bsdimp.com
Wed Jun 9 18:22:04 GMT 2004


In message: <Pine.BSF.4.21.0406091101160.57882-100000 at InterJet.elischer.org>
            Julian Elischer <julian at elischer.org> writes:
: 
: 
: On Wed, 9 Jun 2004, Poul-Henning Kamp wrote:
: 
: > In message <Pine.BSF.4.21.0406091051580.57882-100000 at InterJet.elischer.org>, 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


More information about the cvs-src mailing list