MCPcopy Create free account
hub / github.com/Tencent/phxsql / check_enough_stack_size

Function check_enough_stack_size

phx_percona/percona/sql/mysqld.cc:3684–3695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3682 so checking *every* recursive call is not necessary.
3683 */
3684extern "C" int
3685check_enough_stack_size(int recurse_level)
3686{
3687 uchar stack_top;
3688 if (recurse_level % 16 != 0)
3689 return 0;
3690
3691 THD *my_thd= current_thd;
3692 if (my_thd != NULL)
3693 return check_stack_overrun(my_thd, STACK_MIN_SIZE * 2, &stack_top);
3694 return 0;
3695}
3696#endif
3697
3698

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected