diff options
| author | Jason Evans <jasone@FreeBSD.org> | 2001-07-20 04:23:11 +0000 |
|---|---|---|
| committer | Jason Evans <jasone@FreeBSD.org> | 2001-07-20 04:23:11 +0000 |
| commit | aa33517e949a0603d3bac6cba0c05344ca68754c (patch) | |
| tree | 656e85a738aa3a12d8926a342cea87c2eae35e1d /lib/libpthread/thread/thr_init.c | |
| parent | 50ea040994690e6a3141549c18dfd59a25de75e1 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_init.c')
| -rw-r--r-- | lib/libpthread/thread/thr_init.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libpthread/thread/thr_init.c b/lib/libpthread/thread/thr_init.c index b63a11157737..9f10f740fd1d 100644 --- a/lib/libpthread/thread/thr_init.c +++ b/lib/libpthread/thread/thr_init.c @@ -268,9 +268,6 @@ _thread_init(void) memcpy((void *) &_thread_initial->attr, &pthread_attr_default, sizeof(struct pthread_attr)); - /* Initialize the thread stack cache: */ - SLIST_INIT(&_stackq); - /* * Create a red zone below the main stack. All other stacks are * constrained to a maximum size by the paramters passed to @@ -279,7 +276,7 @@ _thread_init(void) * thread stack that is just beyond. */ if (mmap((void *) USRSTACK - PTHREAD_STACK_INITIAL - - PTHREAD_STACK_GUARD, PTHREAD_STACK_GUARD, 0, MAP_ANON, + PTHREAD_GUARD_DEFAULT, PTHREAD_GUARD_DEFAULT, 0, MAP_ANON, -1, 0) == MAP_FAILED) PANIC("Cannot allocate red zone for initial thread"); |
