summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Shulga <Dmitry.Shulga@Sun.COM>2010-10-12 19:19:33 +0700
committerDmitry Shulga <Dmitry.Shulga@Sun.COM>2010-10-12 19:19:33 +0700
commit52c547a0f90fb33a25fee169d83b6362ab525ea1 (patch)
tree465505e044cd8aabde18bd8f80061e4084b8a7d6
parentbbfda44c06e8a9a3734aa1aca79168c6bb676fd5 (diff)
downloadmariadb-git-52c547a0f90fb33a25fee169d83b6362ab525ea1.tar.gz
A follow up for the patch for Bug#45445, increase stack size
to fix an sp-error.test failure on Sun Sparc system.
-rw-r--r--sql/sp_head.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index e25b10957ac..52f658cbe0e 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -1228,12 +1228,13 @@ sp_head::execute(THD *thd)
parsing and loading of another stored procedure into the cache
(@sa db_load_routine() and Bug#10100).
At the time of measuring, a recursive SP invocation required
- 3232 bytes of stack on 32 bit Linux and 6016 bytes on 64 bit Mac.
+ 3232 bytes of stack on 32 bit Linux, 6016 bytes on 64 bit Mac
+ and 11152 on 64 bit Solaris sparc.
The same with db_load_routine() required circa 7k bytes and
14k bytes accordingly. Hence, here we book the stack with some
reasonable margin.
*/
- if (check_stack_overrun(thd, 2 * STACK_MIN_SIZE, (uchar*)&old_packet))
+ if (check_stack_overrun(thd, 4 * STACK_MIN_SIZE, (uchar*)&old_packet))
DBUG_RETURN(TRUE);
/* init per-instruction memroot */