summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-10-05 09:32:00 (GMT)
committerGitHub <noreply@github.com>2020-10-05 09:32:00 (GMT)
commitdcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e (patch)
treeb5cd4ca84fa87dc7d91b6709b76d134a84aee6b2 /Python
parent9a7642667a71a27b38b96eb63df45f17f48b3467 (diff)
downloadcpython-dcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e.zip
cpython-dcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e.tar.gz
cpython-dcc54215ac1eb4b6fab2a9ffe1abcdf3ac4bb77e.tar.bz2
bpo-41936. Remove macros Py_ALLOW_RECURSION/Py_END_ALLOW_RECURSION (GH-22552)
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c3
-rw-r--r--Python/pystate.c1
2 files changed, 0 insertions, 4 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 7c6cf83..500c588 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -814,9 +814,6 @@ _Py_CheckRecursiveCall(PyThreadState *tstate, const char *where)
return -1;
}
#endif
- if (tstate->recursion_critical)
- /* Somebody asked that we don't check for recursion. */
- return 0;
if (tstate->overflowed) {
if (tstate->recursion_depth > recursion_limit + 50) {
/* Overflowing while handling an overflow. Give up. */
diff --git a/Python/pystate.c b/Python/pystate.c
index f6d1956..eb24f2b 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -581,7 +581,6 @@ new_threadstate(PyInterpreterState *interp, int init)
tstate->frame = NULL;
tstate->recursion_depth = 0;
tstate->overflowed = 0;
- tstate->recursion_critical = 0;
tstate->stackcheck_counter = 0;
tstate->tracing = 0;
tstate->use_tracing = 0;