From owner-freebsd-arch Wed Oct 4 1:17:20 2000 Delivered-To: freebsd-arch@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id B599237B502; Wed, 4 Oct 2000 01:17:18 -0700 (PDT) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e948H9h01572; Wed, 4 Oct 2000 01:17:09 -0700 (PDT) Date: Wed, 4 Oct 2000 01:17:09 -0700 From: Alfred Perlstein To: Peter Wemm Cc: Chuck Paterson , John Baldwin , arch@FreeBSD.ORG, John Polstra , Daniel Eischen , Matt Dillon , Greg Lehey Subject: Re: Mutexes and semaphores Message-ID: <20001004011709.E27736@fw.wintelcom.net> References: <200010040727.e947RpH19302@netplex.com.au> <200010040750.e947oaH19391@netplex.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <200010040750.e947oaH19391@netplex.com.au>; from peter@netplex.com.au on Wed, Oct 04, 2000 at 12:50:36AM -0700 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Peter Wemm [001004 00:50] wrote: > Peter Wemm wrote: > > Chuck Paterson wrote: > > > Your right, not freeing these things ever does make things > > > lots easier. > > > > > > Chuck > > > > In the freebsd case, this is the case. Zones are never cleaned up, and > > certainly not unmapped. zfree() will however cause the first few bytes > > to be clobbered as they are reused for the freelist. > > Actually, a final version is at: > http://people.freebsd.org/~peter/getppid.diff I'd really prefer not to see gcc inline asm in the code like that, can we use a macro like 'mb()'? or better yet 'memory_order()' that way it can be used in a lot of places without worrying about catching all the changes if they're needed. Otherwise it's great. :) -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message