gh-129732: Fix race in on shared->array in qsbr code under free-threa…#129738
gh-129732: Fix race in on shared->array in qsbr code under free-threa…#129738colesbury merged 2 commits intopython:mainfrom
Conversation
|
This LGTM, just needs a NEWS blurb |
…-threading. The read of shared->array should happen under the lock to avoid a race. Fixes python#129732
Done. I'm not sure how these normally look, let me know if you need something different. |
|
Thanks @hawkinsp for the PR, and @colesbury for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
Sorry, @hawkinsp and @colesbury, I could not cleanly backport this to |
|
GH-129747 is a backport of this pull request to the 3.13 branch. |
…r free-threading (pythongh-129738) The read of `shared->array` should happen under the lock to avoid a race. (cherry picked from commit b4ff8b2) Co-authored-by: Peter Hawkins <phawkins@google.com>
|
|
The buildbot failure looks unrelated. The modified file is only used in the free threading build and the failed buildbot is for the default (GIL-enabled) build. EDIT: See #128381 |
…threading (pythongh-129738) The read of `shared->array` should happen under the lock to avoid a race.
…threading (pythongh-129738) The read of `shared->array` should happen under the lock to avoid a race.
…ding.
The read of shared->array should happen under the lock to avoid a race.
Fixes #129732