8000 gh-116322: Enable the GIL while loading C extension modules by swtaarrs · Pull Request #118560 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-116322: Enable the GIL while loading C extension modules #118560

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

Merged
merged 9 commits into from
May 7, 2024
Prev Previous commit
Next Next commit
📜🤖 Added by blurb_it.
  • Loading branch information
blurb-it[bot] authored May 3, 2024
commit 3e8fee5067ce84d32d25b2251cb5f5922062a6e7
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
In ``--disable-gil`` builds, the GIL will be enabled while loading C extension modules. If the module indicates that it supports running without the GIL, the GIL will be disabled once loading is complete. Otherwise, the GIL will remain enabled for the remainder of the interpreter's lifetime. This behavior does not apply if the GIL has been explicitly enabled or disabled with ``PYTHON_GIL`` or ``-Xgil``.
Loading
0