From owner-cvs-all@FreeBSD.ORG Sat Jun 28 17:12:41 2003 Return-Path: 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 F289A37B401; Sat, 28 Jun 2003 17:12:40 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9628644027; Sat, 28 Jun 2003 17:12:40 -0700 (PDT) (envelope-from mtm@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h5T0Ce0U054995; Sat, 28 Jun 2003 17:12:40 -0700 (PDT) (envelope-from mtm@repoman.freebsd.org) Received: (from mtm@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h5T0Ceg9054991; Sat, 28 Jun 2003 17:12:40 -0700 (PDT) Message-Id: <200306290012.h5T0Ceg9054991@repoman.freebsd.org> From: Mike Makonnen Date: Sat, 28 Jun 2003 17:12:40 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libthr/arch/i386/i386 _setcurthread.c src/lib/libthr/thread thr_private.h thr_spinlock.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jun 2003 00:12:41 -0000 mtm 2003/06/28 17:12:40 PDT FreeBSD src repository Modified files: lib/libthr/arch/i386/i386 _setcurthread.c lib/libthr/thread thr_private.h thr_spinlock.c Log: The move to _retire() a thread in the GC instead of in the thread's exit function has invalidated the need for _spin[un]lock_pthread(). The _spin[un]lock() functions can now dereference curthread without the danger that the ldtentry containing the pointer to the thread has been cleared out from under them. Revision Changes Path 1.10 +2 -4 src/lib/libthr/arch/i386/i386/_setcurthread.c 1.16 +0 -2 src/lib/libthr/thread/thr_private.h 1.5 +3 -15 src/lib/libthr/thread/thr_spinlock.c