Skip to content

[3.13] gh-143880: Fix data race in functools.partial in free threading build (GH-143882)#145435

Merged
colesbury merged 1 commit intopython:3.13from
miss-islington:backport-0042384-3.13
Mar 2, 2026
Merged

[3.13] gh-143880: Fix data race in functools.partial in free threading build (GH-143882)#145435
colesbury merged 1 commit intopython:3.13from
miss-islington:backport-0042384-3.13

Conversation

@miss-islington
Copy link
Contributor

gh-143880: Fix data race in functools.partial in free threading build

The assignment to pto->vectorcall isn't thread-safe in the free
threading build. Note that this is already fixed in the main branch.
(cherry picked from commit 0042384)

Co-authored-by: Sam Gross colesbury@gmail.com

…threading build (pythonGH-143882)

pythongh-143880: Fix data race in `functools.partial` in free threading build

The assignment to `pto->vectorcall` isn't thread-safe in the free
threading build. Note that this is already fixed in the main branch.
(cherry picked from commit 0042384)

Co-authored-by: Sam Gross <colesbury@gmail.com>
@colesbury colesbury self-assigned this Mar 2, 2026
@colesbury colesbury enabled auto-merge (squash) March 2, 2026 21:22
@colesbury colesbury merged commit fb34027 into python:3.13 Mar 2, 2026
77 of 79 checks passed
@miss-islington miss-islington deleted the backport-0042384-3.13 branch March 2, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants