Just for grins, let's see if 48K works or not.

This commit is contained in:
Tom Lane 2008-01-08 21:53:50 +00:00 committed by Michal Schorm
parent aeb5ae2bb0
commit abed7a21a8

View File

@ -5,7 +5,7 @@ changes in compiler, glibc, etc. Suspect this number if
"execution_constants" regression test fails. "execution_constants" regression test fails.
As of 5.0.45 and F9, it seems 16384 isn't enough anymore either (ppc 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, 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 which means we are now also forced to raise DEFAULT_THREAD_STACK for 32-bit
arches. 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 +++ mysql-5.0.45/include/my_pthread.h 2008-01-08 14:51:39.000000000 -0500
@@ -737,7 +737,7 @@ @@ -737,7 +737,7 @@
*/ */
#define DEFAULT_THREAD_STACK (256*1024L) #define DEFAULT_THREAD_STACK (512*1024L)
#else #else
-#define DEFAULT_THREAD_STACK (192*1024) -#define DEFAULT_THREAD_STACK (192*1024)
+#define DEFAULT_THREAD_STACK (256*1024) +#define DEFAULT_THREAD_STACK (512*1024)
#endif #endif
#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. "execution_constants" test to pass.
*/ */
-#define STACK_MIN_SIZE 12000 // Abort if less stack during eval. -#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_MIN_SIZE_FOR_OPEN 1024*80
#define STACK_BUFF_ALLOC 352 // For stack overrun checks #define STACK_BUFF_ALLOC 352 // For stack overrun checks