From owner-cvs-all Thu Jul 25 13:40:27 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5E0D37B43B; Thu, 25 Jul 2002 13:40:15 -0700 (PDT) Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5961F43E31; Thu, 25 Jul 2002 13:40:15 -0700 (PDT) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020725204015.PDZM24728.rwcrmhc51.attbi.com@InterJet.elischer.org>; Thu, 25 Jul 2002 20:40:15 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id NAA10535; Thu, 25 Jul 2002 13:20:30 -0700 (PDT) Date: Thu, 25 Jul 2002 13:20:29 -0700 (PDT) From: Julian Elischer To: John Baldwin Cc: Julian Elischer , cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: RE: cvs commit: src/sys/i386/i386 trap.c src/sys/kern kern_threa In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG the value is only set to our thread pointer if We set it.. if any other thread touches it it will still not resolve to equality. whether we win or lose the race, the test for equality with our thread pointer will still not evaluate to true. On Thu, 25 Jul 2002, John Baldwin wrote: > > On 24-Jul-2002 Julian Elischer wrote: > > julian 2002/07/24 16:21:05 PDT > > > > Modified files: > > sys/i386/i386 trap.c > > sys/kern kern_thread.c > > Log: > > Add some locking asserts and some comments > > Why is it safe to read a stale value? > > -- > > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message