From abed7a21a8bb3685a291820d6b394486478c58f4 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 8 Jan 2008 21:53:50 +0000 Subject: [PATCH] Just for grins, let's see if 48K works or not. --- mysql-stack.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mysql-stack.patch b/mysql-stack.patch index 7926e11..7e00367 100644 --- a/mysql-stack.patch +++ b/mysql-stack.patch @@ -5,7 +5,7 @@ changes in compiler, glibc, etc. Suspect this number if "execution_constants" regression test fails. As of 5.0.45 and F9, it seems 16384 isn't enough anymore either (ppc fails, -and seems to now need something above 20000 --- why?). STACK_MIN_SIZE has +and seems to now need something above 24576 --- why?). STACK_MIN_SIZE has to be enough less than DEFAULT_THREAD_STACK / 8 to provide some headroom, which means we are now also forced to raise DEFAULT_THREAD_STACK for 32-bit arches. @@ -16,10 +16,10 @@ diff -Naur mysql-5.0.45.orig/include/my_pthread.h mysql-5.0.45/include/my_pthrea +++ mysql-5.0.45/include/my_pthread.h 2008-01-08 14:51:39.000000000 -0500 @@ -737,7 +737,7 @@ */ - #define DEFAULT_THREAD_STACK (256*1024L) + #define DEFAULT_THREAD_STACK (512*1024L) #else -#define DEFAULT_THREAD_STACK (192*1024) -+#define DEFAULT_THREAD_STACK (256*1024) ++#define DEFAULT_THREAD_STACK (512*1024) #endif #endif @@ -31,7 +31,7 @@ diff -Naur mysql-5.0.45.orig/sql/mysql_priv.h mysql-5.0.45/sql/mysql_priv.h "execution_constants" test to pass. */ -#define STACK_MIN_SIZE 12000 // Abort if less stack during eval. -+#define STACK_MIN_SIZE 24576 // Abort if less stack during eval. ++#define STACK_MIN_SIZE 49152 // Abort if less stack during eval. #define STACK_MIN_SIZE_FOR_OPEN 1024*80 #define STACK_BUFF_ALLOC 352 // For stack overrun checks