Date: Thu, 29 Aug 2002 12:49:53 -0700 (PDT) From: Julian Elischer <julian@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_thread.c Message-ID: <200208291949.g7TJnrQF035939@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
julian 2002/08/29 12:49:53 PDT Modified files: sys/kern kern_thread.c Log: Fix crack-smoking code that was panicing on the quad xeon: - If either of proc or kse are NULL during thread_exit(), then the kernel is going to fault because parts of the function assume they aren't NULL. Instead, just assert they aren't NULL (as well as the kse group) and assume they are in all of the code. It doesn't make sense for them to be NULL here anyways. - Move the PROC_UNLOCK(p) up above clearing td_proc, etc. since otherwise we will panic if the proc's lock is contested. Submitted by: jhb@freebsd.org Revision Changes Path 1.17 +23 -26 src/sys/kern/kern_thread.c 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?200208291949.g7TJnrQF035939>