Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jun 2004 14:06:40 -0500 (CDT)
From:      Mike Silbersack <silby@silby.com>
To:        Pawel Jakub Dawidek <pjd@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   panic("boring") was: Re: cvs commit: src/sys/kern kern_proc.c
Message-ID:  <20040609140517.L17265@odysseus.silby.com>
In-Reply-To: <20040609190258.GY12007@darkness.comp.waw.pl>
References:  <20040609182041.GV12007@darkness.comp.waw.pl> <Pine.BSF.4.21.0406091151050.57882-100000@InterJet.elischer.org> <20040609190258.GY12007@darkness.comp.waw.pl>

next in thread | previous in thread | raw e-mail | index | archive | help

On Wed, 9 Jun 2004, Pawel Jakub Dawidek wrote:

> +> > (thread2 sets ref_cnt to 0, but thread1 destroys objects) we free object
> +> > only once. Cool, I like it:)
> +>
> +> the reference count must never be read or written after the [cleanup]
> +> because  it may free the page on which teh counter is kept.
>
> Right... Nice catch. So Bosko probebly have to rethink his model.

Due to the length and unimportance of this thread, I officially dub it:

"Locking the Bikeshed"

Well, at least we're done painting it...

Mike "Silby" Silbersack



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040609140517.L17265>