freebsd-nq/lib/libkse/thread
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
..
Makefile.inc
thr_attr_destroy.c
thr_attr_getdetachstate.c
thr_attr_getinheritsched.c
thr_attr_getschedparam.c
thr_attr_getschedpolicy.c
thr_attr_getscope.c
thr_attr_getstackaddr.c
thr_attr_getstacksize.c
thr_attr_init.c
thr_attr_setcreatesuspend_np.c
thr_attr_setdetachstate.c
thr_attr_setinheritsched.c
thr_attr_setschedparam.c
thr_attr_setschedpolicy.c
thr_attr_setscope.c
thr_attr_setstackaddr.c
thr_attr_setstacksize.c
thr_clean.c
thr_close.c
thr_cond.c
thr_condattr_destroy.c
thr_condattr_init.c
thr_create.c Use growable stacks for thread stacks that are the default stack size. 1999-07-05 00:35:19 +00:00
thr_detach.c
thr_equal.c
thr_exit.c
thr_fcntl.c
thr_find_thread.c
thr_fork.c
thr_fsync.c
thr_getprio.c
thr_getschedparam.c
thr_info.c
thr_init.c Use growable stacks for thread stacks that are the default stack size. 1999-07-05 00:35:19 +00:00
thr_join.c
thr_kern.c
thr_kill.c
thr_mattr_init.c
thr_mattr_kind_np.c
thr_multi_np.c
thr_mutex_prioceiling.c
thr_mutex_protocol.c
thr_mutex.c
thr_mutexattr_destroy.c
thr_nanosleep.c
thr_once.c
thr_open.c
thr_poll.c
thr_priority_queue.c
thr_private.h Use growable stacks for thread stacks that are the default stack size. 1999-07-05 00:35:19 +00:00
thr_read.c
thr_readv.c
thr_resume_np.c
thr_rwlock.c
thr_rwlockattr.c
thr_select.c
thr_self.c
thr_seterrno.c
thr_setprio.c
thr_setschedparam.c
thr_sig.c
thr_sigaction.c
thr_sigmask.c
thr_sigpending.c
thr_sigprocmask.c
thr_sigsuspend.c
thr_sigwait.c
thr_single_np.c
thr_spec.c
thr_spinlock.c
thr_suspend_np.c
thr_switch_np.c
thr_vfork.c
thr_wait4.c Defer signals, so we will not wait for SIGCHLD after it was delivered. 1999-06-29 19:57:07 +00:00
thr_write.c
thr_writev.c
thr_yield.c