From 082d1540d3c84d16e1967ad68ca445068261cec7 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 12 Jun 2003 21:44:56 +0000 Subject: Set the default thread stack size to 16k for mmu-less systems. -Erik --- libpthread/linuxthreads/internals.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libpthread/linuxthreads') diff --git a/libpthread/linuxthreads/internals.h b/libpthread/linuxthreads/internals.h index 2c662582a..528acddc3 100644 --- a/libpthread/linuxthreads/internals.h +++ b/libpthread/linuxthreads/internals.h @@ -318,7 +318,11 @@ static inline int invalid_handle(pthread_handle h, pthread_t id) THREAD_SELF implementation is used, this must be a power of two and a multiple of PAGE_SIZE. */ #ifndef STACK_SIZE +#ifdef __UCLIBC_HAS_MMU__ #define STACK_SIZE (2 * 1024 * 1024) +#else +#define STACK_SIZE (4 * PAGE_SIZE) +#endif #endif /* The initial size of the thread stack. Must be a multiple of PAGE_SIZE. */ -- cgit v1.2.3