aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-08-04 10:10:29 +0100
committerGitHub <noreply@github.com>2023-08-04 10:10:29 +0100
commitfa45958450aa3489607daf9855ca0474a2a20878 (patch)
tree0e7a9b21503a7cf08691b99990ee6a538aa931b5 /Python/Python-ast.c
parent0bd784b355edf0d1911a7830db5d41c84171e367 (diff)
downloadcpython-fa45958450aa3489607daf9855ca0474a2a20878.tar.gz
cpython-fa45958450aa3489607daf9855ca0474a2a20878.zip
GH-107263: Increase C stack limit for most functions, except `_PyEval_EvalFrameDefault()` (GH-107535)
* Set C recursion limit to 1500, set cost of eval loop to 2 frames, and compiler mutliply to 2.
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r--Python/Python-ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c
index 412de793974..8047b1259c5 100644
--- a/Python/Python-ast.c
+++ b/Python/Python-ast.c
@@ -13073,7 +13073,7 @@ PyObject* PyAST_mod2obj(mod_ty t)
int starting_recursion_depth;
/* Be careful here to prevent overflow. */
- int COMPILER_STACK_FRAME_SCALE = 3;
+ int COMPILER_STACK_FRAME_SCALE = 2;
PyThreadState *tstate = _PyThreadState_GET();
if (!tstate) {
return 0;