]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-116908: Only write to `_pending_calls.calls_to_do` with atomic operations (#117044)
authorBrett Simmers <swtaarrs@users.noreply.github.com>
Wed, 20 Mar 2024 15:18:26 +0000 (08:18 -0700)
committerGitHub <noreply@github.com>
Wed, 20 Mar 2024 15:18:26 +0000 (11:18 -0400)
commit9221ef2d8cb7f4cf37592eb650d4c8f972033000
tree9f4e40bfc4868b7f75637fcda7b3cf5a9f3db3d6
parentfc4599800778f9b130d5e336deadbdeb5bd3e5ee
gh-116908: Only write to `_pending_calls.calls_to_do` with atomic operations (#117044)

These writes to `pending->calls_to_do` need to be atomic, because other threads
can read (atomically) from `calls_to_do` without holding `pending->mutex`.
Python/ceval_gil.c