gh-145713: make bytearray.resize thread-safe on free-threading (#145714) · python/cpython@c3955e0 · GitHub
Skip to content

Commit c3955e0

Browse files
gh-145713: make bytearray.resize thread-safe on free-threading (#145714)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
1 parent ebb150e commit c3955e0

4 files changed

Lines changed: 25 additions & 3 deletions

File tree

Lib/test/test_bytes.py

Lines changed: 16 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Make :meth:`bytearray.resize` thread-safe in the free-threaded build by
2+
using a critical section and calling the lock-held variant of the resize
3+
function.

Objects/bytearrayobject.c

Lines changed: 3 additions & 2 deletions

Objects/clinic/bytearrayobject.c.h

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)