summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_exit.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2002-08-29 19:49:53 +0000
committerjulian <julian@FreeBSD.org>2002-08-29 19:49:53 +0000
commita9901abd65684d503ef81966ede6f2b7bb982af3 (patch)
treeda5eca802efcec024b6c7bd781571db5a107cb8b /lib/libpthread/thread/thr_exit.c
parent1986a94b82132d3e7898ec24ee7e632c5e884ad7 (diff)
downloadFreeBSD-src-a9901abd65684d503ef81966ede6f2b7bb982af3.zip
FreeBSD-src-a9901abd65684d503ef81966ede6f2b7bb982af3.tar.gz
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
Diffstat (limited to 'lib/libpthread/thread/thr_exit.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud