diff options
author | jasone <jasone@FreeBSD.org> | 1999-07-05 00:35:19 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 1999-07-05 00:35:19 +0000 |
commit | 6f85900affc95409ce87ebfce319b6f0a911a95c (patch) | |
tree | 55bd23172185419206e51b736aeb4824ee2c7666 /lib/libc_r/Makefile | |
parent | a84623740cbcddc83d3ae0e49ad184b469302d78 (diff) | |
download | FreeBSD-src-6f85900affc95409ce87ebfce319b6f0a911a95c.zip FreeBSD-src-6f85900affc95409ce87ebfce319b6f0a911a95c.tar.gz |
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.
Diffstat (limited to 'lib/libc_r/Makefile')
-rw-r--r-- | lib/libc_r/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc_r/Makefile b/lib/libc_r/Makefile index d79dcd7..ae767be 100644 --- a/lib/libc_r/Makefile +++ b/lib/libc_r/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.14 1998/12/10 20:27:52 jb Exp $ +# $Id: Makefile,v 1.15 1999/06/20 08:32:37 jb Exp $ # # All library objects contain rcsid strings by default; they may be # excluded as a space-saving measure. To produce a library that does @@ -13,7 +13,10 @@ CFLAGS+=-DPTHREAD_KERNEL -D_THREAD_SAFE -I${.CURDIR}/uthread # Uncomment this if you want libc_r to contain debug information for # thread locking. -#CFLAGS+=-D_LOCK_DEBUG +CFLAGS+=-D_LOCK_DEBUG + +# Uncomment this if you want libc_r to use growable stacks. +CFLAGS+= -D_PTHREAD_GSTACK AINC= -I${.CURDIR}/../libc/${MACHINE_ARCH} -I${.CURDIR}/uthread PRECIOUSLIB= yes |