-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
gh-115999: Enable specialization of CALL
instructions in free-threaded builds
#127123
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
Merged
Merged
Changes from 24 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
6d9b6a2
Refactor specialize_c_call to use helpers
mpage 30e25d2
Refactor specialize_py_call to use helpers
mpage 92160de
Refactor specialize_class_call to use helpers
mpage 4754921
Refactor specialize_method_descriptor to use helpers
mpage 6a20bb0
Remove unneeded code
mpage ea7206d
Enable almost all specializations of CALL
mpage d5375f1
Regen files
mpage a2ca192
Fix implementation of CALL_LIST_APPEND in free-threaded builds
mpage 2ab08f2
Regenerate interpreter and friends
mpage 3534246
Refactor PyType_LookupRef to return version
mpage acda1c6
Make CALL_ALLOC_AND_ENTER_INIT thread-safe
mpage fdfa678
Regenerate files
mpage ad2e15c
Stop the world around assignments to `tstate->eval_frame`
mpage 0003d00
Document restriction on _Py_InitCleanup bytecode
mpage 8ebd331
Undo refactor
mpage 4c1ad6c
Undo workaround for now-fixed cases_generator bug
mpage 57ba52d
Document _PyType_CacheInitForSpecialization
mpage 8ebd73d
Remove unused define
mpage 8651ebe
Enable tests
mpage 4c7837f
Fix warning about unused function on macos
mpage 4b0a850
Merge branch 'main' into gh-115999-tlbc-call
mpage d8a67c2
Tag workarounds for not deferring nested functions on classes with gh…
mpage 3e8d85e
Use `_PyInterpreterState_SetEvalFrameFunc` when setting / clearing pe…
mpage de0e2ee
Fix issue with `_CREATE_INIT_FRAME`
mpage 1cb6260
Merge branch 'main' into gh-115999-tlbc-call
mpage b3aa63c
Use release/acquire for the specialization cache
mpage 6b591c3
Use locking macros instead of helper function
mpage a5fdc59
Merge branch 'main' into gh-115999-tlbc-call
mpage bc65932
Merge branch 'main' into gh-115999-tlbc-call
mpage File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be "release" so that the contents of
init
are visible beforeinit
is written totype->_spec_cache.init
.(There might be other synchronization of the thread-local specialization process that makes relaxed okay, but it seems easier to reason about to me if it's at least "release")