Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Mar 2002 16:13:26 -0500 (EST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org
Subject:   RE: cvs commit: src/sys/alpha/alpha trap.c src/sys/i386/i386 tra
Message-ID:  <XFMail.20020320161326.jhb@FreeBSD.org>
In-Reply-To: <200203202109.g2KL9Am89620@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 20-Mar-2002 John Baldwin wrote:
> jhb         2002/03/20 13:09:09 PST
> 
>   Modified files:
>     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 
>     sys/sys              proc.h 
>   Log:
>   Change the way we ensure td_ucred is NULL if DIAGNOSTIC is defined.
>   Instead of caching the ucred reference, just go ahead and eat the
>   decerement and increment of the refcount.  Now that Giant is pushed down
>   into crfree(), we no longer have to get Giant in the common case.  In the
>   case when we are actually free'ing the ucred, we would normally free it on
>   the next kernel entry, so the cost there is not new, just in a different
>   place.  This also removse td_cache_ucred from struct thread.  This is
>   still only done #ifdef DIAGNOSTIC.
>   
>   Tested on:      i386, alpha

Although this wasn't tested on ia64, sparc64, and powerpc, if you look at the
diff's the change is identical to identical code on all 5 platforms.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20020320161326.jhb>