]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-129732: Fix race on `shared->array` in qsbr code under free-threading (gh-129738)
authorPeter Hawkins <phawkins@google.com>
Thu, 6 Feb 2025 18:49:29 +0000 (13:49 -0500)
committerGitHub <noreply@github.com>
Thu, 6 Feb 2025 18:49:29 +0000 (18:49 +0000)
commitb4ff8b22b3066b814c3758f87eaddfa923e657ed
treee0872fc20dc08c3194ab6da5b413a058eab99a96
parent78377c788e02e91bf43d290d69317198a2e563fd
gh-129732: Fix race on `shared->array` in qsbr code under free-threading (gh-129738)

The read of `shared->array` should happen under the lock to avoid a race.
Misc/NEWS.d/next/Core_and_Builtins/2025-02-06-17-57-33.gh-issue-129732.yl97oq.rst [new file with mode: 0644]
Python/qsbr.c