]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99113: A Per-Interpreter GIL! (gh-104210)
authorEric Snow <ericsnowcurrently@gmail.com>
Mon, 8 May 2023 19:15:09 +0000 (13:15 -0600)
committerGitHub <noreply@github.com>
Mon, 8 May 2023 19:15:09 +0000 (13:15 -0600)
commit5c9ee498c6f4b75e0e020f17b6860309c3b7e11e
tree156aabe859f9c87bbad1bb7bfcc72e6169173d92
parent942482c8e660765f68098eae347d84b93e37661a
gh-99113: A Per-Interpreter GIL! (gh-104210)

This is the culmination of PEP 684 (and of my 8-year long multi-core Python project)!

Each subinterpreter may now be created with its own GIL (via Py_NewInterpreterFromConfig()).  If not so configured then the interpreter will share with the main interpreter--the status quo since subinterpreters were added decades ago.  The main interpreter always has its own GIL and subinterpreters from Py_NewInterpreter() will always share with the main interpreter.
Include/internal/pycore_ceval.h
Include/internal/pycore_ceval_state.h
Include/internal/pycore_interp.h
Include/internal/pycore_runtime.h
Misc/NEWS.d/next/Core and Builtins/2023-05-05-12-14-47.gh-issue-99113.-RAdnv.rst [new file with mode: 0644]
Python/ceval_gil.c
Python/pystate.c