MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / check_enough_stack_size

Function check_enough_stack_size

sql/mysqld.cc:1435–1446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1433 so checking *every* recursive call is not necessary.
1434 */
1435extern "C" int
1436check_enough_stack_size(int recurse_level)
1437{
1438 uchar stack_top;
1439 if (recurse_level % 16 != 0)
1440 return 0;
1441
1442 THD *my_thd= current_thd;
1443 if (my_thd != NULL)
1444 return check_stack_overrun(my_thd, STACK_MIN_SIZE * 2, &stack_top);
1445 return 0;
1446}
1447#endif
1448
1449

Callers

nothing calls this directly

Calls 1

check_stack_overrunFunction · 0.85

Tested by

no test coverage detected