summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2023-05-08 19:15:09 (GMT)
committerGitHub <noreply@github.com>2023-05-08 19:15:09 (GMT)
commit5c9ee498c6f4b75e0e020f17b6860309c3b7e11e (patch)
tree156aabe859f9c87bbad1bb7bfcc72e6169173d92 /Misc/NEWS.d
parent942482c8e660765f68098eae347d84b93e37661a (diff)
downloadcpython-5c9ee498c6f4b75e0e020f17b6860309c3b7e11e.zip
cpython-5c9ee498c6f4b75e0e020f17b6860309c3b7e11e.tar.gz
cpython-5c9ee498c6f4b75e0e020f17b6860309c3b7e11e.tar.bz2
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.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2023-05-05-12-14-47.gh-issue-99113.-RAdnv.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-05-05-12-14-47.gh-issue-99113.-RAdnv.rst b/Misc/NEWS.d/next/Core and Builtins/2023-05-05-12-14-47.gh-issue-99113.-RAdnv.rst
new file mode 100644
index 0000000..42e26cb
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2023-05-05-12-14-47.gh-issue-99113.-RAdnv.rst
@@ -0,0 +1,6 @@
+The GIL is now (optionally) per-interpreter. This is the fundamental change
+for PEP 684. This is all made possible by virtue of the isolated state of
+each interpreter in the process. The behavior of the main interpreter
+remains unchanged. Likewise, interpreters created using
+``Py_NewInterpreter()`` are not affected. To get an interpreter with its
+own GIL, call ``Py_NewInterpreterFromConfig()``.