gh-114940: Add _Py_FOR_EACH_TSTATE_UNLOCKED(), and Friends#127077
Merged
ericsnowcurrently merged 4 commits intopython:mainfrom Nov 21, 2024
Merged
gh-114940: Add _Py_FOR_EACH_TSTATE_UNLOCKED(), and Friends#127077ericsnowcurrently merged 4 commits intopython:mainfrom
ericsnowcurrently merged 4 commits intopython:mainfrom
Conversation
Member
Author
|
@colesbury, do you have any objections to how I turn |
Contributor
|
No objections from me! |
ebonnal
pushed a commit
to ebonnal/cpython
that referenced
this pull request
Jan 12, 2025
…hongh-127077) This is a precursor to the actual fix for pythongh-114940, where we will change these macros to use the new lock. This change is almost entirely mechanical; the exceptions are the loops in codeobject.c and ceval.c, which now hold the "head" lock. Note that almost all of the uses of _Py_FOR_EACH_TSTATE_UNLOCKED() here will change to _Py_FOR_EACH_TSTATE_BEGIN() once we add the new per-interpreter lock.
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
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.
This is a precursor to the actual fix for gh-114940, where we will change these macros to use the new lock. This change is almost entirely mechanical; the exceptions are the loops in codeobject.c and ceval.c, which now hold the "head" lock. Note that almost all of the uses of
_Py_FOR_EACH_TSTATE_UNLOCKED()here will change to_Py_FOR_EACH_TSTATE_BEGIN()once we add the new per-interpreter lock.