From owner-p4-projects Fri May 10 12:59:14 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 5CC8337B405; Fri, 10 May 2002 12:59:09 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from finntroll.newgold.net (durham-ar1-4-64-252-019.durham.dsl-verizon.net [4.64.252.19]) by hub.freebsd.org (Postfix) with SMTP id 5F80A37B407 for ; Fri, 10 May 2002 12:59:07 -0700 (PDT) Received: (qmail 11146 invoked by uid 1001); 10 May 2002 19:59:15 -0000 Date: Fri, 10 May 2002 19:59:14 +0000 From: "J. Mallett" To: Robert Watson Cc: Jake Burkholder , Jonathan Mini , Perforce Change Reviews Subject: Re: PERFORCE change 11120 for review Message-ID: <20020510195914.GD20619@FreeBSD.ORG> References: <20020510123716.D2566@locore.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Organisation: The FreeBSD Project Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, May 10, 2002 at 01:15:20PM -0400, Robert Watson wrote: > I actually also was curious about the locking environment UMA provides > when initializing and destroying memory slabs... A lot of "common" > cleanup will involve locking -- removing things from chains, freeing > allocated references to other types of objects, etc. If UMA locks are > held at that point, that may cause problems. It could be that for > destructors, UMA needs a worker thread iterating on a work list that > doesn't require held locks during destruction to avoid locking > incidentals. Or at the very least, someone needs to document what locks > are held :-). Is there any reason to not atomic-set a "dead" flag and have a thread cleanup those allocations? -- jmallett@FreeBSD.org | C, MIPS, POSIX, UNIX, BSD, IRC Geek. http://www.FreeBSD.org | The Power to Serve "I've never tried to give my life meaning by demeaning you." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message