8000 [3.9] bpo-40826: PyOS_InterruptOccurred() requires GIL (GH-20578) by vstinner · Pull Request #20618 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.9] bpo-40826: PyOS_InterruptOccurred() requires GIL (GH-20578) #20618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 3, 2020
Merged

[3.9] bpo-40826: PyOS_InterruptOccurred() requires GIL (GH-20578) #20618

merged 2 commits into from
Jun 3, 2020

Conversation

vstinner
Copy link
Member
@vstinner vstinner commented Jun 3, 2020

vstinner added 2 commits June 3, 2020 18:33
Add _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)
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.

3 participants
0