]> granicus.if.org Git - python/commit
bpo-20891: Py_Initialize() now creates the GIL (#4700)
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 29 Jan 2018 10:57:45 +0000 (11:57 +0100)
committerGitHub <noreply@github.com>
Mon, 29 Jan 2018 10:57:45 +0000 (11:57 +0100)
commit2914bb32e2adf8dff77c0ca58b33201bc94e398c
tree1a2e9e064f9dbc362c2b3c5bbb52affadaa448fa
parent8997f9cd1a59f04fbb8c7b590295a9f38c548744
bpo-20891: Py_Initialize() now creates the GIL (#4700)

The GIL is no longer created "on demand" to fix a race condition when
PyGILState_Ensure() is called in a non-Python thread.
Doc/c-api/init.rst
Misc/NEWS.d/next/Core and Builtins/2017-12-04-18-34-11.bpo-20891.C2TsfR.rst [new file with mode: 0644]
Python/ceval.c
Python/pylifecycle.c