diff options
author | deischen <deischen@FreeBSD.org> | 2003-01-11 00:43:20 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2003-01-11 00:43:20 +0000 |
commit | 3155dbd99ce81dc4841ea2380c12068dfb497612 (patch) | |
tree | 16744d438b1460b6ed2ad50c7691187771502cec /lib | |
parent | e540e35a2c49db9fab0d34d582f8af61c3456e92 (diff) | |
download | FreeBSD-src-3155dbd99ce81dc4841ea2380c12068dfb497612.zip FreeBSD-src-3155dbd99ce81dc4841ea2380c12068dfb497612.tar.gz |
Increase the scheduler stack to 4 pages. This should prevent a stack
overflow when dumping thread info (generated by receipt of SIGINFO).
Reported by: jmallet
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc_r/uthread/uthread_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc_r/uthread/uthread_init.c b/lib/libc_r/uthread/uthread_init.c index 41737b1..5367d0b 100644 --- a/lib/libc_r/uthread/uthread_init.c +++ b/lib/libc_r/uthread/uthread_init.c @@ -220,7 +220,7 @@ _thread_init(void) _pthread_page_size = getpagesize();; _pthread_guard_default = _pthread_page_size; - sched_stack_size = _pthread_page_size; + sched_stack_size = 4 * _pthread_page_size; _pthread_attr_default.guardsize_attr = _pthread_guard_default; |