From ea5248ee1bc5d031e0b1e70a311f450a741c1e99 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Wed, 14 May 2014 17:58:29 -0700 Subject: [PATCH] Increase minimum thread size for 64 bit. Bug: 14468519 Change-Id: I642a5515acf5fbed46e77e176f6b5dd3b7c7bd45 --- libc/include/pthread.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libc/include/pthread.h b/libc/include/pthread.h index 7b8de81cd..49f943abe 100644 --- a/libc/include/pthread.h +++ b/libc/include/pthread.h @@ -35,7 +35,7 @@ #include #include -#ifdef __LP64__ +#if defined(__LP64__) #define __RESERVED_INITIALIZER , {0} #else #define __RESERVED_INITIALIZER @@ -112,7 +112,11 @@ typedef volatile int pthread_once_t; #define PTHREAD_ONCE_INIT 0 +#if defined(__LP64__) +#define PTHREAD_STACK_MIN (4 * PAGE_SIZE) +#else #define PTHREAD_STACK_MIN (2 * PAGE_SIZE) +#endif #define PTHREAD_CREATE_DETACHED 0x00000001 #define PTHREAD_CREATE_JOINABLE 0x00000000