From owner-freebsd-arch Wed Apr 18 20:53:15 2001 Delivered-To: freebsd-arch@freebsd.org Received: from filk.iinet.net.au (syncopation-dns.iinet.net.au [203.59.24.29]) by hub.freebsd.org (Postfix) with SMTP id 14F2D37B423 for ; Wed, 18 Apr 2001 20:53:12 -0700 (PDT) (envelope-from julian@elischer.org) Received: (qmail 6524 invoked by uid 666); 19 Apr 2001 03:56:00 -0000 Received: from i182-041.nv.iinet.net.au (HELO elischer.org) (203.59.182.41) by mail.m.iinet.net.au with SMTP; 19 Apr 2001 03:56:00 -0000 Message-ID: <3ADE60FB.E7B4AD95@elischer.org> Date: Wed, 18 Apr 2001 20:52:27 -0700 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Terry Lambert Cc: Matt Dillon , arch@FreeBSD.ORG Subject: Re: Found BAD BUG: squashed References: <200104182323.QAA22635@usr07.primenet.com> Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Terry Lambert wrote: > I'm tempted to suggest that the INVARIANTS code wants to seperately > reference count objects, after allocating them larger than they > are, and passing a pointer into itself that can be backed out > (like the old malloc hack to do the same thing), to keep it from > spamming reference counts. But that's a lot more work. I suggest that we define a generic refcount type and implement basic kernel support for incrementing and decrementing it. These can be hand optimised and also be atomic there are some suggestions for this already... allowing the type to be a non-simple type gives the posibility of such debugging support being included. > > Terry Lambert > terry@lambert.org > -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000-2001 ---> X_.---._/ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message