31
31
Check stack size; Send error if there isn't enough stack to continue
32
32
****************************************************************************/
33
33
#if defined(STACK_DIRECTION) && (STACK_DIRECTION < 0)
39
48
extern size_t my_thread_stack_size;
41
50
bool check_stack_overrun(Session *session, long margin, void *)
45
53
if ((stack_used=used_stack(session->thread_stack,(char*) &stack_used)) >=
46
54
(long) (my_thread_stack_size - margin))