Skip to content

[3.13] gh-127065: Make methodcaller thread-safe in free threading build (GH-127109) - #127150

Merged
colesbury merged 1 commit into
python:3.13from
miss-islington:backport-f83ca69-3.13
Nov 22, 2024
Merged

[3.13] gh-127065: Make methodcaller thread-safe in free threading build (GH-127109)#127150
colesbury merged 1 commit into
python:3.13from
miss-islington:backport-f83ca69-3.13

Conversation

@miss-islington

@miss-islingtonmiss-islington commented Nov 22, 2024

Copy link
Copy Markdown
Contributor

The methodcaller C vectorcall implementation uses an arguments array
that is shared across calls. The first argument is modified on every
invocation. This isn't thread-safe in the free threading build. I think
it's also not safe in general, but for now just disable it in the free
threading build.
(cherry picked from commit f83ca69)

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

…ild (pythonGH-127109)
The `methodcaller` C vectorcall implementation uses an arguments array
that is shared across calls. The first argument is modified on every
invocation. This isn't thread-safe in the free threading build. I think
it's also not safe in general, but for now just disable it in the free
threading build.
(cherry picked from commit f83ca69)
Co-authored-by: Sam Gross <colesbury@gmail.com>
Sign up for freeto 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

@miss-islington@colesbury