summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2003-01-11 00:43:20 +0000
committerdeischen <deischen@FreeBSD.org>2003-01-11 00:43:20 +0000
commit3155dbd99ce81dc4841ea2380c12068dfb497612 (patch)
tree16744d438b1460b6ed2ad50c7691187771502cec
parente540e35a2c49db9fab0d34d582f8af61c3456e92 (diff)
downloadFreeBSD-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
-rw-r--r--lib/libc_r/uthread/uthread_init.c2
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;
OpenPOWER on IntegriCloud