Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-115999: Specialize LOAD_SUPER_ATTR in free-threaded builds #127128

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nascheme
Copy link
Member

@nascheme nascheme commented Nov 22, 2024

Use existing helpers to atomically modify the bytecode. Replace _PySuper_Lookup with _PySuper_LookupAttr and _PySuper_LookupMethod. The new functions use lock the type in order to be free-threading safe. Add unit tests to ensure specializing is happening as expected.

Use existing helpers to atomically modify the bytecode.  Add unit tests
to ensure specializing is happening as expected.  Add test_specialize.py
that can be used with ThreadSanitizer to detect data races.
@nascheme nascheme marked this pull request as ready for review November 25, 2024 21:35
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.

1 participant