Date: Sat, 29 Nov 2003 06:22:29 -0800 (PST) From: David Xu <davidxu@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libpthread/thread thr_kern.c thr_private.h Message-ID: <200311291422.hATEMTop022600@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311291422.hATEMTop022600>
