diff options
| author | Eric Snow <ericsnowcurrently@gmail.com> | 2021-12-07 14:03:47 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-07 14:03:47 -0700 |
| commit | 313f92a57bc3887026ec16adb536bb2b7580ce47 (patch) | |
| tree | 65ddd994ed926fb46d2c24628b94f24667f6f385 /Python/ceval.c | |
| parent | 8262c96bcc1841188866c1b022d9087e89639d98 (diff) | |
| download | cpython-git-313f92a57bc3887026ec16adb536bb2b7580ce47.tar.gz | |
bpo-46008: Move thread-related interpreter state into a sub-struct. (gh-29971)
This parallels _PyRuntimeState.interpreters. Doing this helps make it more clear what part of PyInterpreterState relates to its threads.
https://bugs.python.org/issue46008
Diffstat (limited to 'Python/ceval.c')
| -rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 36d1360015..2e40c0f5b3 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -784,7 +784,7 @@ Py_SetRecursionLimit(int new_limit) { PyInterpreterState *interp = _PyInterpreterState_GET(); interp->ceval.recursion_limit = new_limit; - for (PyThreadState *p = interp->tstate_head; p != NULL; p = p->next) { + for (PyThreadState *p = interp->threads.head; p != NULL; p = p->next) { int depth = p->recursion_limit - p->recursion_remaining; p->recursion_limit = new_limit; p->recursion_remaining = new_limit - depth; |
