freebsd-dev/lib/libpthread/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 In the words of the author: 1999-06-20 08:28:48 +00:00
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 In the words of the author: 1999-06-20 08:28:48 +00:00
thr_cond.c In the words of the author: 1999-06-20 08:28:48 +00:00
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 In the words of the author: 1999-06-20 08:28:48 +00:00
thr_equal.c
thr_exit.c In the words of the author: 1999-06-20 08:28:48 +00:00
thr_fcntl.c
thr_find_thread.c In the words of the author: 1999-06-20 08:28:48 +00:00
thr_fork.c In the words of the author: 1999-06-20 08:28:48 +00:00
thr_fsync.c
thr_gc.c Use growable stacks for thread stacks that are the default stack size. 1999-07-05 00:35:19 +00:00
thr_getprio.c
thr_getschedparam.c
thr_info.c In the words of the author: 1999-06-20 08:28:48 +00:00
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 In the words of the author: 1999-06-20 08:28:48 +00:00
thr_kern.c In the words of the author: 1999-06-20 08:28:48 +00:00
thr_kill.c In the words of the author: 1999-06-20 08:28:48 +00:00
thr_mattr_init.c
thr_mattr_kind_np.c
thr_multi_np.c
thr_mutex_prioceiling.c
thr_mutex_protocol.c
thr_mutex.c In the words of the author: 1999-06-20 08:28:48 +00:00
thr_mutexattr_destroy.c
thr_nanosleep.c
thr_once.c
thr_open.c
thr_poll.c In the words of the author: 1999-06-20 08:28:48 +00:00
thr_priority_queue.c In the words of the author: 1999-06-20 08:28:48 +00:00
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 In the words of the author: 1999-06-20 08:28:48 +00:00
thr_rwlock.c
thr_rwlockattr.c
thr_select.c Fix few warnings on the alpha. 1999-06-23 15:01:22 +00:00
thr_self.c
thr_seterrno.c
thr_setprio.c
thr_setschedparam.c In the words of the author: 1999-06-20 08:28:48 +00:00
thr_sig.c In the words of the author: 1999-06-20 08:28:48 +00:00
thr_sigaction.c In the words of the author: 1999-06-20 08:28:48 +00:00
thr_sigmask.c
thr_sigpending.c
thr_sigprocmask.c
thr_sigsuspend.c
thr_sigwait.c In the words of the author: 1999-06-20 08:28:48 +00:00
thr_single_np.c
thr_spec.c
thr_spinlock.c
thr_suspend_np.c In the words of the author: 1999-06-20 08:28:48 +00:00
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