8000 gh-120973: Fix thread-safety issues with `threading.local` by mpage · Pull Request #121655 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-120973: Fix thread-safety issues with threading.local #121655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jul 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
8000 Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into gh-120973-fix-local-clear
  • Loading branch information
mpage committed Jul 16, 2024
commit 0e9a0bc5caae1d8ce81f6f8d9641945f47458ac7
2 changes: 2 additions & 0 deletions Python/pystate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1705,6 +1705,8 @@ PyThreadState_Clear(PyThreadState *tstate)
Py_CLEAR(tstate->threading_local_key);
Py_CLEAR(tstate->threading_local_sentinel);

Py_CLEAR(tstate->asyncio_running_loop);

Py_CLEAR(tstate->dict);
Py_CLEAR(tstate->async_exc);

Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.
0