-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
gh-140138: NOGIL: add atomic owner refcount to PyInterpreterState; finalize on last tstate #140224
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
Conversation
Changes made on top of the previous fix from PR |
Misc/NEWS.d/next/Core_and_Builtins/2025-10-16-20-06-33.gh-issue-140138.a_fhrh.rst
Outdated
Show resolved
Hide resolved
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.
Thanks, this PR looks good if we decide to fix this, but I'm worried about whether this is even a bug in the first place. See my comment on the issue. Please let me know if I missed something in my analysis.
Move the `_owners` field to be after `finalizing` and add it back to the struct. It was removed in a previous commit and is needed.
Fixes a typo where the atomic variable `_owners` was incorrectly named and should have been `owners`.
Rename functions to be more descriptive of their actions.
Move the cleanup logic into PyInterpreterState_Delete and remove the now-unused helper function.
The field name was inconsistent with other usages.
@ZeroIntensity this PR necessary or is it better to close it? |
I don't think this PR is necessary. |
Uh oh!
There was an error while loading. Please reload this page.