]> granicus.if.org Git - python/commit
bpo-36356: Destroy the GIL at exit (GH-12453)
authorVictor Stinner <vstinner@redhat.com>
Mon, 29 Apr 2019 09:15:56 +0000 (11:15 +0200)
committerGitHub <noreply@github.com>
Mon, 29 Apr 2019 09:15:56 +0000 (11:15 +0200)
commitb36e5d627d4232a01850707eb78a5067f3fd77f4
tree63eb8a0966e7ac1b721f8de5c877d4bc79c6fa58
parent7a5a1cfe04892351bba8e8d7d21ae2262fa35b67
bpo-36356: Destroy the GIL at exit (GH-12453)

* Add _PyEval_FiniThreads2(). _PyEval_FiniThreads() now only clears
  the pending lock, whereas _PyEval_FiniThreads2() destroys the GIL.
* pymain_free() now calls _PyEval_FiniThreads2().
* Py_FinalizeEx() now calls _PyEval_FiniThreads().
Include/ceval.h
Include/internal/pycore_ceval.h
Modules/main.c
Python/ceval.c
Python/pylifecycle.c