]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-119247: Add macros to use PySequence_Fast safely in free-threaded build (#119315)
authorJosh {*()} Rosenberg <26495692+MojoVampire@users.noreply.github.com>
Wed, 22 May 2024 17:45:34 +0000 (17:45 +0000)
committerGitHub <noreply@github.com>
Wed, 22 May 2024 17:45:34 +0000 (17:45 +0000)
commitbaf347d91643a83483bae110092750d39471e0c2
treebc2074c60ff7552fad04048fcff17dd6e8841d21
parent2b3fb767bea1f96c9e0523f6cc341b40f0fa1ca1
gh-119247: Add macros to use PySequence_Fast safely in free-threaded build (#119315)

Add `Py_BEGIN_CRITICAL_SECTION_SEQUENCE_FAST` and
`Py_END_CRITICAL_SECTION_SEQUENCE_FAST` macros and update `str.join` to use
them. Also add a regression test that would crash reliably without this
patch.
Include/internal/pycore_critical_section.h
Lib/test/test_free_threading/test_str.py [new file with mode: 0644]
Misc/NEWS.d/next/C API/2024-05-21-11-35-11.gh-issue-119247.U6n6mh.rst [new file with mode: 0644]
Objects/unicodeobject.c