mirror of
https://github.com/python/cpython.git
synced 2026-04-15 00:00:57 +00:00
gh-131798: split recursion check to _CHECK_RECURSION_LIMIT and combine checks (GH-148070)
This commit is contained in:
parent
113038f940
commit
e7bf8eac0f
12 changed files with 1393 additions and 1271 deletions
|
|
@ -1397,6 +1397,13 @@ dummy_func(void) {
|
|||
}
|
||||
}
|
||||
|
||||
op(_CHECK_RECURSION_LIMIT, ( -- )) {
|
||||
if (ctx->frame->is_c_recursion_checked) {
|
||||
ADD_OP(_NOP, 0, 0);
|
||||
}
|
||||
ctx->frame->is_c_recursion_checked = true;
|
||||
}
|
||||
|
||||
op(_CALL_METHOD_DESCRIPTOR_NOARGS, (callable, self_or_null, args[oparg] -- res)) {
|
||||
PyObject *callable_o = sym_get_const(ctx, callable);
|
||||
if (callable_o && Py_IS_TYPE(callable_o, &PyMethodDescr_Type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue