]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99113: Add PyInterpreterConfig.own_gil (gh-104204)
authorEric Snow <ericsnowcurrently@gmail.com>
Fri, 5 May 2023 21:59:20 +0000 (15:59 -0600)
committerGitHub <noreply@github.com>
Fri, 5 May 2023 21:59:20 +0000 (15:59 -0600)
commitf3e7eb48f86057919c347f56dabf417acfd55845
tree1b4c1a4a939f6609ddf17e842abf8490c582a037
parent66558d2a16ee42afc0e2c02e6a90bfd62dcb67f6
gh-99113: Add PyInterpreterConfig.own_gil (gh-104204)

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.
Include/cpython/initconfig.h
Include/internal/pycore_ceval.h
Include/internal/pycore_ceval_state.h
Lib/test/test_capi/test_misc.py
Lib/test/test_embed.py
Lib/test/test_import/__init__.py
Lib/test/test_threading.py
Modules/_testcapimodule.c
Modules/_testinternalcapi.c
Python/ceval_gil.c
Python/pylifecycle.c