]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-127065: Make `methodcaller` thread-safe in free threading build (#127109)
authorSam Gross <colesbury@gmail.com>
Fri, 22 Nov 2024 14:21:59 +0000 (14:21 +0000)
committerGitHub <noreply@github.com>
Fri, 22 Nov 2024 14:21:59 +0000 (09:21 -0500)
commitf83ca6962af973fff6a3124f4bd3d45fea4dd5b8
treea0d5d30ccf66eab3390e3424c7839bfc6be8c726
parent3c770e3f0978d825c5ebea98fcd654660e7e135f
gh-127065: Make `methodcaller` thread-safe in free threading build (#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.
Misc/NEWS.d/next/Library/2024-11-21-16-23-16.gh-issue-127065.cfL1zd.rst [new file with mode: 0644]
Modules/_operator.c