gh-145713: fix: make bytearray.resize thread-safe#145714
gh-145713: fix: make bytearray.resize thread-safe#145714kumaraditya303 merged 7 commits intopython:mainfrom
Conversation
|
This looks good. The UBSan failures is unrelated to this PR (#142651). Would you please add a regression test? The other free-threading related bytearray tests are in |
|
Thanks for suggesting that -- I added a test! (And confirmed it does fail if I run it without my changes on a free-threaded build.) |
|
Thanks @KowalskiThomas for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Sorry, @KowalskiThomas and @kumaraditya303, I could not cleanly backport this to |
…ython#145714) Co-authored-by: Kumar Aditya <kumaraditya@python.org> (cherry picked from commit c3955e0)
|
GH-145799 is a backport of this pull request to the 3.14 branch. |
Description
This PR is a fix for #145713; it adds a critical section annotation to the argument clinic input for
bytearray.resize.bytearray.resizeis not thread-safe #145713