freebsd-skq/lib/libpthread
Jason Evans ecaa6e8c9e Use growable stacks for thread stacks that are the default stack size.
Cache discarded default thread stacks for use in subsequent thread creations.

Create a red zone at the end of each stack (including the initial thread
stack), with the hope of causing a segfault if a stack overflows.

To activate these modifications, add -D_PTHREAD_GSTACK to CFLAGS in
src/lib/libc_r/Makefile.  Since the modifications depend on the VM_STACK
kernel option, I'm not sure how to safely use growable stacks by default.

Testing, as well as algorithmic and stylistic comments are welcome.
1999-07-05 00:35:19 +00:00
..
arch Change to a code sequence which is more likely to work on SMP systems. 1998-09-16 09:27:05 +00:00
man Removed extraneous comma in xrefs. 1999-05-14 21:03:23 +00:00
sys Change the name of this source file so that libc_r builds it instead 1998-04-30 09:04:10 +00:00
test Add mutex test program. 1999-05-09 07:50:31 +00:00
thread Use growable stacks for thread stacks that are the default stack size. 1999-07-05 00:35:19 +00:00
Makefile Use growable stacks for thread stacks that are the default stack size. 1999-07-05 00:35:19 +00:00