From owner-cvs-all Fri Feb 22 15:58:29 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 302F437B404; Fri, 22 Feb 2002 15:58:23 -0800 (PST) Received: (from julian@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1MNwNH23641; Fri, 22 Feb 2002 15:58:23 -0800 (PST) (envelope-from julian) Message-Id: <200202222358.g1MNwNH23641@freefall.freebsd.org> From: Julian Elischer Date: Fri, 22 Feb 2002 15:58:23 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_fork.c subr_trap.c src/sys/sys proc.h src/sys/alpha/alpha trap.c src/sys/i386/i386 trap.c src/sys/ia64/ia64 trap.c src/sys/powerpc/powerpc trap.c src/sys/sparc64/sparc64 trap.c X-FreeBSD-CVS-Branch: HEAD 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 julian 2002/02/22 15:58:23 PST Modified files: sys/kern subr_trap.c kern_fork.c sys/sys proc.h sys/alpha/alpha trap.c sys/i386/i386 trap.c sys/ia64/ia64 trap.c sys/powerpc/powerpc trap.c sys/sparc64/sparc64 trap.c Log: Add some DIAGNOSTIC code. While in userland, keep the thread's ucred reference in a shadow field so that the usual place to store it is NULL. If DIAGNOSTIC is not set, the thread ucred is kept valid until the next kernel entry, at which time it is checked against the process cred and possibly corrected. Produces a BIG speedup in kernels with INVARIANTS set. (A previous commit corrected it for the non INVARIANTS case already) Reviewed by: dillon@freebsd.org Revision Changes Path 1.84 +22 -12 src/sys/alpha/alpha/trap.c 1.213 +25 -14 src/sys/i386/i386/trap.c 1.44 +24 -14 src/sys/ia64/ia64/trap.c 1.134 +9 -6 src/sys/kern/kern_fork.c 1.209 +30 -6 src/sys/kern/subr_trap.c 1.8 +13 -7 src/sys/powerpc/powerpc/trap.c 1.24 +24 -14 src/sys/sparc64/sparc64/trap.c 1.205 +5 -0 src/sys/sys/proc.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message