]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-127065: Make `methodcaller` thread-safe in free threading build (GH-127109...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 22 Nov 2024 14:51:40 +0000 (15:51 +0100)
committerGitHub <noreply@github.com>
Fri, 22 Nov 2024 14:51:40 +0000 (14:51 +0000)
commit5468d219df65d4fe3335e2bcc09d2f6032a32c70
tree76e4060cabf55262b829298d3dd872f70b34b927
parent1b58c0f3088a1e6afe508ca3a6f976749f58cb77
[3.13] gh-127065: Make `methodcaller` thread-safe in free threading build (GH-127109) (GH-127150)

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 f83ca6962af973fff6a3124f4bd3d45fea4dd5b8)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Misc/NEWS.d/next/Library/2024-11-21-16-23-16.gh-issue-127065.cfL1zd.rst [new file with mode: 0644]
Modules/_operator.c