]> granicus.if.org Git - python/commit
bpo-36710: PyOS_AfterFork_Child() pass runtime parameter (GH-12936)
authorVictor Stinner <vstinner@redhat.com>
Wed, 24 Apr 2019 15:14:33 +0000 (17:14 +0200)
committerGitHub <noreply@github.com>
Wed, 24 Apr 2019 15:14:33 +0000 (17:14 +0200)
commitb930a2d2b1247bdba560db341ba90a9cbb538eb3
treeed2cd1a40f8150e1c498eca98427c9af4f1c7ada
parent8bb3230149538c25c1bacced5e64a3c071475f73
bpo-36710: PyOS_AfterFork_Child() pass runtime parameter (GH-12936)

The PyOS_AfterFork_Child() function now pass a 'runtime' parameter to
subfunctions.

* Fix _PyRuntimeState_ReInitThreads(): use the correct memory allocator
* Add runtime parameter to _PyRuntimeState_ReInitThreads(),
  _PyGILState_Reinit() and _PyInterpreterState_DeleteExceptMain()
* Move _PyGILState_Reinit() to the internal C API.
Include/cpython/pystate.h
Include/internal/pycore_pystate.h
Modules/posixmodule.c
Python/pystate.c