[3.9] bpo-40826: PyOS_InterruptOccurred() requires GIL (GH-20578) by vstinner · Pull Request #20618 · python/cpython
added 2 commits
June 3, 2020 18:33Add _Py_EnsureTstateNotNULL(tstate) macro: call Py_FatalError() if tstate is NULL, the error message contains the current function name. (cherry picked from commit 3026cad)
PyOS_InterruptOccurred() now fails with a fatal error if it is called with the GIL released. (cherry picked from commit cbe1296)
pv
mentioned this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters