| 1433 | so checking *every* recursive call is not necessary. |
| 1434 | */ |
| 1435 | extern "C" int |
| 1436 | check_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 |
nothing calls this directly
no test coverage detected