77c4066424
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 |
||
---|---|---|
.. | ||
clock.c | ||
locore.S | ||
machdep.c | ||
mmu_oea.c | ||
ofw_machdep.c | ||
ofwmagic.S | ||
swtch.S | ||
trap.c | ||
vm_machdep.c |