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

Audit all built-in modules for thread safety #116738

Open
3 of 5 tasks
Tracked by #108219
swtaarrs opened this issue Mar 13, 2024 · 0 comments
Open
3 of 5 tasks
Tracked by #108219

Audit all built-in modules for thread safety #116738

swtaarrs opened this issue Mar 13, 2024 · 0 comments
Assignees
Labels
extension-modules C modules in the Modules dir topic-free-threading type-feature A feature request or enhancement

Comments

@swtaarrs
Copy link
Member

swtaarrs commented Mar 13, 2024

Feature or enhancement

Proposal:

After gh-116322 is done, and before we do gh-116329, we'll need to make sure that all built-in modules (or at least the ones that are loaded by most programs) are tagged as not using the GIL, by setting their Py_mod_gil module slot to Py_MOD_GIL_NOT_USED. If we don't, the GIL will effectively still be enabled by default, since loading any untagged module will enable it.

I expect a lot of modules will require little to no work; I'll create separate issues for any that are nontrivial.

Open Issues

  1. topic-free-threading type-feature
    erlend-aasland
  2. topic-free-threading type-feature
    mpage
Completed Issues

Completed Issues

  1. 3.13 extension-modules topic-free-threading type-feature
    chgnrdv
  2. 3.13 extension-modules topic-free-threading type-feature
    tomasr8
  3. extension-modules topic-free-threading type-feature

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/, especially this section

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension-modules C modules in the Modules dir topic-free-threading type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant