Date: Sun, 4 Jul 1999 17:35:21 -0700 (PDT) From: Jason Evans <jasone@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc_r Makefile src/lib/libc_r/uthread pthread_private.h uthread_create.c uthread_gc.c uthread_init.c Message-ID: <199907050035.RAA48088@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jasone 1999/07/04 17:35:20 PDT Modified files: lib/libc_r Makefile lib/libc_r/uthread pthread_private.h uthread_create.c uthread_gc.c uthread_init.c Log: 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. Revision Changes Path 1.16 +5 -2 src/lib/libc_r/Makefile 1.21 +44 -2 src/lib/libc_r/uthread/pthread_private.h 1.14 +57 -1 src/lib/libc_r/uthread/uthread_create.c 1.5 +30 -2 src/lib/libc_r/uthread/uthread_gc.c 1.13 +28 -15 src/lib/libc_r/uthread/uthread_init.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907050035.RAA48088>