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

Disable the GIL by default in free-threaded builds #116329

Closed
Tracked by #108219
swtaarrs opened this issue Mar 4, 2024 · 2 comments
Closed
Tracked by #108219

Disable the GIL by default in free-threaded builds #116329

swtaarrs opened this issue Mar 4, 2024 · 2 comments
Assignees
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) topic-free-threading type-feature A feature request or enhancement

Comments

@swtaarrs
Copy link
Member

swtaarrs commented Mar 4, 2024

Feature or enhancement

Proposal:

Once #116167 is complete, users will be able to disable the GIL with PYTHON_GIL=0, but the GIL will remain enabled by default.

When we have enough confidence in the correctness of running without the GIL, we should change free-threaded builds to disable the GIL by default, as described in PEP 703.

This should be a very small code change, and is already detailed in this comment.

@corona10
Copy link
Member

corona10 commented Mar 5, 2024

From my view, at least we should pass all unit tests with PYTHON_GIL=0

@colesbury
Copy link
Contributor

Done in #118295

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) topic-free-threading type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants