]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r196730:
authorkib <kib@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 8 Sep 2009 15:31:23 +0000 (15:31 +0000)
committerkib <kib@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 8 Sep 2009 15:31:23 +0000 (15:31 +0000)
commitfbc6abb4f107b32e32e9a51781e9a9e0608afc87
tree66c36c08c008764d411d8477953e27ef2742f6b2
parentda104d842bf8821719586629763d20e4bd20aa3c
MFC r196730:
Remove the altkstacks, instead instantiate threads with kernel stack
allocated with the right size from the start. For the thread that has
kernel stack cached, verify that requested stack size is equial to the
actual, and reallocate the stack if sizes differ.

Introduce separate kernel stack cache that keeps some limited amount of
preallocated kernel stacks to lower the latency of thread allocation.

Not a merge: instead of removing td_altkstack* members of struct thread,
replace them with placeholders to keep struct thread layout on the
stable branch.

Also, record r196640, r196644 and r196648 as merged.

Approved by: re (kensmith)

git-svn-id: svn://svn.freebsd.org/base/stable/8@196977 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/arm/arm/vm_machdep.c
sys/kern/kern_fork.c
sys/kern/kern_kthread.c
sys/kern/kern_proc.c
sys/kern/kern_thr.c
sys/kern/kern_thread.c
sys/sys/proc.h
sys/vm/vm_extern.h
sys/vm/vm_glue.c