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-96071: fix deadlock in PyGILState_Ensure #96124

Merged
merged 3 commits into from
Aug 19, 2022

Conversation

kumaraditya303
Copy link
Contributor

@kumaraditya303 kumaraditya303 commented Aug 19, 2022

Alternative of #96107

Automerge-Triggered-By: GH:ericsnowcurrently

@pablogsal
Copy link
Member

Nice, now that we have both, which one do you prefer in terms of maintainability? (Is ok if you like the other one more)

I personally like this one a bit more because I can reason easier about re-entrancy and concurrency

@kumaraditya303
Copy link
Contributor Author

@pablogsal Let's go with this one. I agree this is easier to understand than the other one.

@kumaraditya303 kumaraditya303 added interpreter-core (Objects, Python, Grammar, and Parser dirs) release-blocker needs backport to 3.11 only security fixes labels Aug 19, 2022
Copy link
Member

@ericsnowcurrently ericsnowcurrently left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (with one minor adjustment to a comment)

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

Co-authored-by: Eric Snow <[email protected]>
@miss-islington
Copy link
Contributor

Thanks @kumaraditya303 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 19, 2022
Alternative of pythonGH-96107
(cherry picked from commit e0d54a4)

Co-authored-by: Kumar Aditya <[email protected]>
@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Aug 19, 2022
@bedevere-bot
Copy link

GH-96129 is a backport of this pull request to the 3.11 branch.

pablogsal pushed a commit that referenced this pull request Aug 19, 2022
Alternative of GH-96107
(cherry picked from commit e0d54a4)

Co-authored-by: Kumar Aditya <[email protected]>

Co-authored-by: Kumar Aditya <[email protected]>
@kumaraditya303 kumaraditya303 deleted the pystate-2 branch August 20, 2022 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) release-blocker
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants