Skip to content

[3.7] bpo-33005: Fix _PyGILState_Reinit() (GH-6001)#6003

Merged
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-5d92647-3.7
Mar 6, 2018
Merged

[3.7] bpo-33005: Fix _PyGILState_Reinit() (GH-6001)#6003
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-5d92647-3.7

Conversation

@miss-islington

@miss-islington miss-islington commented Mar 6, 2018

Copy link
Copy Markdown
Contributor

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 5d92647)

Co-authored-by: Victor Stinner victor.stinner@gmail.com

https://bugs.python.org/issue33005

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 5d92647)

Co-authored-by: Victor Stinner <victor.stinner@gmail.com>

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good bot.

@miss-islington

Copy link
Copy Markdown
Contributor Author

@vstinner: Backport status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 31e2b76 into python:3.7 Mar 6, 2018
@miss-islington

Copy link
Copy Markdown
Contributor Author

Thanks!

@miss-islington miss-islington deleted the backport-5d92647-3.7 branch March 6, 2018 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants