diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-07-18 08:52:39 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-18 08:52:39 (GMT) |
| commit | afa5321c6c7cbb28cc1f4100ca3213669a01389d (patch) | |
| tree | de06aec801b0097bdf58f520818af22dcdb5627a /Python | |
| parent | a12c10590828cd840679f44ed1a92f2d970eb940 (diff) | |
| download | cpython-afa5321c6c7cbb28cc1f4100ca3213669a01389d.zip cpython-afa5321c6c7cbb28cc1f4100ca3213669a01389d.tar.gz cpython-afa5321c6c7cbb28cc1f4100ca3213669a01389d.tar.bz2 | |
[3.13] gh-121621: Move asyncio_running_loop to private struct (GH-121939) (#121943)
gh-121621: Move asyncio_running_loop to private struct (GH-121939)
This avoids changing the ABI and keeps the field in the private struct.
(cherry picked from commit 81fd625b5c30cc6f417c93bad404923676ad8ca3)
Co-authored-by: Sam Gross <colesbury@gmail.com>
Diffstat (limited to 'Python')
| -rw-r--r-- | Python/pystate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index f77a2cc..7a272de 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -1499,7 +1499,7 @@ init_threadstate(_PyThreadStateImpl *_tstate, tstate->previous_executor = NULL; tstate->dict_global_version = 0; - tstate->asyncio_running_loop = NULL; + _tstate->asyncio_running_loop = NULL; tstate->delete_later = NULL; @@ -1702,7 +1702,7 @@ PyThreadState_Clear(PyThreadState *tstate) /* Don't clear tstate->pyframe: it is a borrowed reference */ - Py_CLEAR(tstate->asyncio_running_loop); + Py_CLEAR(((_PyThreadStateImpl *)tstate)->asyncio_running_loop); Py_CLEAR(tstate->dict); Py_CLEAR(tstate->async_exc); |
