From owner-cvs-all@FreeBSD.ORG Sat Nov 29 06:22:30 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 C23EE16A4CE; Sat, 29 Nov 2003 06:22:30 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2892D43FCB; Sat, 29 Nov 2003 06:22:30 -0800 (PST) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hATEMTXJ022601; Sat, 29 Nov 2003 06:22:29 -0800 (PST) (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hATEMTop022600; Sat, 29 Nov 2003 06:22:29 -0800 (PST) (envelope-from davidxu) Message-Id: <200311291422.hATEMTop022600@repoman.freebsd.org> From: David Xu Date: Sat, 29 Nov 2003 06:22:29 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libpthread/thread thr_kern.c thr_private.h 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: Sat, 29 Nov 2003 14:22:30 -0000 davidxu 2003/11/29 06:22:29 PST FreeBSD src repository Modified files: lib/libpthread/thread thr_kern.c thr_private.h Log: 1.Macro optimizing KSE_LOCK_ACQUIRE and THR_LOCK_ACQUIRE to use static fall through branch predict as suggested in INTEL IA32 optimization guide. 2.Allocate siginfo arrary separately to avoid pthread to be allocated at 2K boundary, which hits L1 address alias problem and causes context switch to be slow down. 3.Simplify context switch code by removing redundant code, code size is reduced, so it is expected to run faster. Reviewed by: deischen Approved by: re (scottl) Revision Changes Path 1.103 +24 -91 src/lib/libpthread/thread/thr_kern.c 1.106 +7 -8 src/lib/libpthread/thread/thr_private.h