]> granicus.if.org Git - python/commit
bpo-33005: Fix _PyGILState_Reinit() (GH-6001)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 6 Mar 2018 13:52:27 +0000 (05:52 -0800)
committerGitHub <noreply@github.com>
Tue, 6 Mar 2018 13:52:27 +0000 (05:52 -0800)
commit31e2b76f7bbcb8278748565252767a8b7790ff27
tree0119ccb21fbc5904c1018a3a92d9ce57881946d7
parent96fdbacb7797a564249fd59ccf86ec153c4bb095
bpo-33005: Fix _PyGILState_Reinit() (GH-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.
(cherry picked from commit 5d92647102fac9e116b98ab8bbc632eeed501c34)

Co-authored-by: Victor Stinner <victor.stinner@gmail.com>
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