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

Open
Tracked by #108219
swtaarrs opened this issue Mar 4, 2024 · 1 comment
Open
Tracked by #108219

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

swtaarrs opened this issue Mar 4, 2024 · 1 comment
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.

Has this already been discussed elsewhere?

I have already discussed this feature proposal on Discourse

Links to previous discussion of this feature:

https://peps.python.org/pep-0703/

@corona10
Copy link
Member

corona10 commented Mar 5, 2024

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

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

2 participants