diff options
author | Kurt Miller <kurt@cvs.openbsd.org> | 2009-04-21 12:43:02 +0000 |
---|---|---|
committer | Kurt Miller <kurt@cvs.openbsd.org> | 2009-04-21 12:43:02 +0000 |
commit | 48a0ce88ffaff2b978b8b7ead7d4e23112036ed2 (patch) | |
tree | 2d56a3894550e72f51be418f344ecd4b07056cc2 /lib/librthread | |
parent | 530321b86c8778ad43eb3d5318c41b32c694a37e (diff) |
Increase default thread stack size to 256K on 32bit archs and 512K on
64bit archs to accommodate the growing number of ports that put large
buffers on the stack. Supported by many with no objections.
Diffstat (limited to 'lib/librthread')
-rw-r--r-- | lib/librthread/rthread.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/librthread/rthread.h b/lib/librthread/rthread.h index 769e513e5fc..7e6bb530683 100644 --- a/lib/librthread/rthread.h +++ b/lib/librthread/rthread.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rthread.h,v 1.20 2009/02/20 02:38:57 guenther Exp $ */ +/* $OpenBSD: rthread.h,v 1.21 2009/04/21 12:43:01 kurt Exp $ */ /* * Copyright (c) 2004,2005 Ted Unangst <tedu@openbsd.org> * All Rights Reserved. @@ -28,7 +28,11 @@ #include <sys/queue.h> #include <semaphore.h> -#define RTHREAD_STACK_SIZE_DEF (64 * 1024) +#ifdef __LP64__ +#define RTHREAD_STACK_SIZE_DEF (512 * 1024) +#else +#define RTHREAD_STACK_SIZE_DEF (256 * 1024) +#endif struct stack { void *sp; |