diff options
author | Mark Shannon <mark@hotpy.org> | 2025-04-30 11:37:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-30 11:37:53 +0100 |
commit | 44e4c479fbf2c28605bd39303b1ce484753f6177 (patch) | |
tree | e81f9ef8e6d43f8900f7264d2e2fde708bcdaf72 /Python/pylifecycle.c | |
parent | 0f23e84cda6a53a5db7a70f1e48f9773c335a9bd (diff) | |
download | cpython-44e4c479fbf2c28605bd39303b1ce484753f6177.tar.gz cpython-44e4c479fbf2c28605bd39303b1ce484753f6177.zip |
GH-124715: Move trashcan mechanism into `Py_Dealloc` (GH-132280)
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 9eaf493a652..c4c1d9fd9e1 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -854,6 +854,10 @@ error: static PyStatus pycore_interp_init(PyThreadState *tstate) { + _PyThreadStateImpl *_tstate = (_PyThreadStateImpl *)tstate; + if (_tstate->c_stack_hard_limit == 0) { + _Py_InitializeRecursionLimits(tstate); + } PyInterpreterState *interp = tstate->interp; PyStatus status; PyObject *sysmod = NULL; |