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

Release the GIL while creating a Session. (cherrypick of #13127) #13158

Merged
merged 1 commit into from Oct 8, 2021

Conversation

stuhood
Copy link
Sponsor Member

@stuhood stuhood commented Oct 7, 2021

Creating a Session accesses the Graph to get the number of valid nodes, but when created under the PySession wrapper, does so while holding the GIL.

Release the GIL in PySession.

[ci skip-build-wheels]

Creating a `Session` accesses the `Graph` to get the number of valid nodes, but when created under the `PySession` wrapper, does so while holding the GIL.

Release the GIL in `PySession`.

[ci skip-build-wheels]
@stuhood stuhood merged commit 9e9d8fc into pantsbuild:2.7.x Oct 8, 2021
@stuhood stuhood deleted the stuhood/pick-13127-for-2.7.x branch October 8, 2021 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants