Even using the objcache we need a one-per-cpu free-thread cache in order
commitc070746a6c082ca50f9de10d00cf85014b19355e
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 2 Jun 2008 16:54:21 +0000 (2 16:54 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 2 Jun 2008 16:54:21 +0000 (2 16:54 +0000)
tree6e70473ed756187a5af0ab0bd7c97ad68d377a93
parent53cde971a5e3449f2750c9132143925867775bae
Even using the objcache we need a one-per-cpu free-thread cache in order
to keep an exiting thread intact throughout its exit sequence.

This fixes a double-fault which can occur on shutdown.  The bug was mainly
tickled by exiting kernel threads.
sys/kern/lwkt_thread.c
sys/sys/globaldata.h