◐ Shell
clean mode source ↗

gh-99113: Add PyInterpreterConfig.own_gil by ericsnowcurrently · Pull Request #104204 · python/cpython

This was referenced

May 5, 2023

ericsnowcurrently added a commit that referenced this pull request

May 5, 2023
Here we are doing no more than adding the value for Py_mod_multiple_interpreters and using it for stdlib modules.  We will start checking for it in gh-104206 (once PyInterpreterState.ceval.own_gil is added in gh-104204).

erlend-aasland

carljm added a commit to carljm/cpython that referenced this pull request

May 5, 2023

jbower-fb pushed a commit to jbower-fb/cpython that referenced this pull request

May 8, 2023
…4205)

Here we are doing no more than adding the value for Py_mod_multiple_interpreters and using it for stdlib modules.  We will start checking for it in pythongh-104206 (once PyInterpreterState.ceval.own_gil is added in pythongh-104204).

jbower-fb pushed a commit to jbower-fb/cpython that referenced this pull request

May 8, 2023
We also add PyInterpreterState.ceval.own_gil to record if the interpreter actually has its own GIL.

Note that for now we don't actually respect own_gil; all interpreters still share the one GIL.  However, PyInterpreterState.ceval.own_gil does reflect PyInterpreterConfig.own_gil.  That lie is a temporary one that we will fix when the GIL really becomes per-interpreter.