Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
cd81c833
Commit
cd81c833
authored
Oct 12, 2010
by
Dmitry Shulga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A follow up for the patch for Bug#45445, increase stack size
to fix an sp-error.test failure on Sun Sparc system.
parent
0e1dd99c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
sql/sp_head.cc
sql/sp_head.cc
+3
-2
No files found.
sql/sp_head.cc
View file @
cd81c833
...
@@ -1228,12 +1228,13 @@ sp_head::execute(THD *thd)
...
@@ -1228,12 +1228,13 @@ sp_head::execute(THD *thd)
parsing and loading of another stored procedure into the cache
parsing and loading of another stored procedure into the cache
(@sa db_load_routine() and Bug#10100).
(@sa db_load_routine() and Bug#10100).
At the time of measuring, a recursive SP invocation required
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
The same with db_load_routine() required circa 7k bytes and
14k bytes accordingly. Hence, here we book the stack with some
14k bytes accordingly. Hence, here we book the stack with some
reasonable margin.
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
);
DBUG_RETURN
(
TRUE
);
/* init per-instruction memroot */
/* init per-instruction memroot */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment