]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39877: take_gil() checks tstate_must_exit() twice (GH-18890)
authorVictor Stinner <vstinner@python.org>
Mon, 9 Mar 2020 22:10:53 +0000 (23:10 +0100)
committerGitHub <noreply@github.com>
Mon, 9 Mar 2020 22:10:53 +0000 (23:10 +0100)
commit9229eeee105f19705f72e553cf066751ac47c7b7
tree6ac7f6021117f7dfd939188d0bc296097fe93c4c
parentb7e9525f9c7ef02a1d2ad8253afdeb733b0951d4
bpo-39877: take_gil() checks tstate_must_exit() twice (GH-18890)

take_gil() now also checks tstate_must_exit() after acquiring
the GIL: exit the thread if Py_Finalize() has been called.
Python/ceval_gil.h