FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.13] gh-127065: Make `methodcaller` thread-safe in free threading build (GH-127109) by miss-islington · Pull Request #127150 · python/cpython · GitHub

Repository navigation

[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

colesbury merged 1 commit into
python:3.13from
miss-islington:backport-f83ca69-3.13

Conversation

miss-islington commented Nov 22, 2024 •
edited by bedevere-app Bot
Loading

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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL