summaryrefslogtreecommitdiff
path: root/lib/libpthread/uthread
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/uthread')
-rw-r--r--lib/libpthread/uthread/pthread_private.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libpthread/uthread/pthread_private.h b/lib/libpthread/uthread/pthread_private.h
index 5ed8fab9c08..3f324536d46 100644
--- a/lib/libpthread/uthread/pthread_private.h
+++ b/lib/libpthread/uthread/pthread_private.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pthread_private.h,v 1.70 2008/12/18 09:30:32 guenther Exp $ */
+/* $OpenBSD: pthread_private.h,v 1.71 2009/04/21 12:43:01 kurt Exp $ */
/*
* Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>.
* All rights reserved.
@@ -388,7 +388,12 @@ enum pthread_susp {
/*
* Miscellaneous definitions.
*/
-#define PTHREAD_STACK_DEFAULT 65536
+#ifdef __LP64__
+#define PTHREAD_STACK_DEFAULT (512 * 1024)
+#else
+#define PTHREAD_STACK_DEFAULT (256 * 1024)
+#endif
+
/*
* Maximum size of initial thread's stack. This perhaps deserves to be larger
* than the stacks of other threads, since many applications are likely to run