]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45753: Make recursion checks more efficient. (GH-29524)
authorMark Shannon <mark@hotpy.org>
Tue, 16 Nov 2021 11:01:57 +0000 (11:01 +0000)
committerGitHub <noreply@github.com>
Tue, 16 Nov 2021 11:01:57 +0000 (11:01 +0000)
commitb9310773756f40f77e075f221a90dd41e6964efc
tree43674ba9f42f2ff81dfd3025956b0ce8e12251f9
parent9bf2cbc4c498812e14f20d86acb61c53928a5a57
bpo-45753: Make recursion checks more efficient. (GH-29524)

* Uses recursion remaining, instead of recursion depth to speed up check against recursion limit.
Include/cpython/pystate.h
Include/internal/pycore_ceval.h
Misc/NEWS.d/next/Core and Builtins/2021-11-11-17-14-21.bpo-45753.nEBFcC.rst [new file with mode: 0644]
Modules/_testinternalcapi.c
Python/ast.c
Python/ast_opt.c
Python/ceval.c
Python/pystate.c
Python/symtable.c
Python/sysmodule.c