subinterpreters: Move _PyRuntimeState.ceval.recursion_limit to PyInterpreterState.ceval.recursion_limit: make the limit per-interpreter. Make _Py_FinishPendingCalls() and _PyEval_FiniThreads() functions private.
|
I don't understand the relationship between _Py_CheckRecursionLimit and ceval.recursion_limit. When USE_STACKCHECK macro is not defined, _Py_CheckRecursiveCall() is called if tstate->recursion_depth is greater than _Py_CheckRecursionLimit. If USE_STACKCHECK is defined, _Py_CheckRecursiveCall() copies ceval.recursion_limit into _Py_CheckRecursionLimit: See bpo-31857. |
subinterpreters: Move _PyRuntimeState.ceval.recursion_limit to
PyInterpreterState.ceval.recursion_limit: make the limit
per-interpreter.
Make _Py_FinishPendingCalls() and _PyEval_FiniThreads() functions
private.
https://bugs.python.org/issue39984