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-59956: Clarify GILState-related Code #101161

Merged
merged 11 commits into from
Jan 19, 2023

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented Jan 19, 2023

The objective of this change is to help make the GILState-related code easier to understand. This mostly involves moving code around and some semantically equivalent refactors. However, there are a also a small number of slight changes in structure and behavior:

  • tstate_current is moved out of _PyRuntimeState.gilstate (6281edb)
  • autoTSSkey is moved out of _PyRuntimeState.gilstate (4af2ecb)
  • autoTSSkey is initialized earlier (7bdf5a4)
  • autoTSSkey is re-initialized (after fork) earlier (7bdf5a4)

@ericsnowcurrently ericsnowcurrently added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jan 19, 2023
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @ericsnowcurrently for commit 57bd92e 🤖

If you want to schedule another build, you need to add the :hammer: test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jan 19, 2023
@ericsnowcurrently ericsnowcurrently merged commit 6036c3e into python:main Jan 19, 2023
@ericsnowcurrently ericsnowcurrently deleted the gilstate-cleanup-2 branch January 19, 2023 23:04
ericsnowcurrently added a commit that referenced this pull request Jan 20, 2023
This is a follow-up to gh-101161.  The objective is to make it easier to read Python/pystate.c by grouping the functions there in a consistent way.  This exclusively involves moving code around and adding various kinds of comments.

#59956
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.

None yet

2 participants