mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
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.
This commit is contained in:
parent
0bd784b355
commit
fa45958450
21 changed files with 57 additions and 45 deletions
2
Python/Python-ast.c
generated
2
Python/Python-ast.c
generated
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue