Date: Tue, 7 May 2002 07:55:37 -0700 (PDT) From: Jonathan Mini <mini@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 10954 for review Message-ID: <200205071455.g47EtbN90702@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=10954 Change 10954 by mini@mini_stylus on 2002/05/07 07:55:28 Instead of marking ucred NULL when we drop our reference, don't try to drop ucred again in thread_reap(), because it is always dropped before thread_reap() is called. Affected files ... ... //depot/projects/kse/sys/kern/kern_exit.c#45 edit ... //depot/projects/kse/sys/kern/kern_thread.c#44 edit Differences ... ==== //depot/projects/kse/sys/kern/kern_exit.c#45 (text+ko) ==== @@ -375,7 +375,6 @@ * in theory nothing should be using it at this point. */ crfree(td->td_ucred); - td->td_ucred = NULL; /* * Remove proc from allproc queue and pidhash chain. ==== //depot/projects/kse/sys/kern/kern_thread.c#44 (text+ko) ==== @@ -107,13 +107,6 @@ if (td == NULL) return; #endif - /* Undo all the linkages made by proc_linkup */ - /* thread_unlink(td); */ /* already done in thread_exit() */ - - if (td->td_ucred) { - crfree(td->td_ucred); - td->td_ucred = NULL; - } active_threads--; if (cached_threads < thread_cache_size) { To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205071455.g47EtbN90702>