]> granicus.if.org Git - python/commit
bpo-33005: Fix _PyGILState_Reinit() (#6001)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 6 Mar 2018 13:31:37 +0000 (14:31 +0100)
committerGitHub <noreply@github.com>
Tue, 6 Mar 2018 13:31:37 +0000 (14:31 +0100)
commit5d92647102fac9e116b98ab8bbc632eeed501c34
treeb8fbf9c599294d1497a2bbcfa004d27d0c7ad5e0
parentefd2bac1564f8141a4eab1bf8779b412974b8d69
bpo-33005: Fix _PyGILState_Reinit() (#6001)

Fix a crash on fork when using a custom memory allocator (ex: using
PYTHONMALLOC env var).

_PyGILState_Reinit() and _PyInterpreterState_Enable() now use the
default RAW memory allocator to allocate a new interpreters mutex on
fork.
Misc/NEWS.d/next/Core and Builtins/2018-03-06-12-19-19.bpo-33005.LP-V2U.rst [new file with mode: 0644]
Python/pystate.c