8000 bpo-40826: Add _Py_EnsureTstateNotNULL() macro by vstinner · Pull Request #20571 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-40826: Add _Py_EnsureTstateNotNULL() macro #20571

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 1 commit into from
Jun 1, 2020
Merged

bpo-40826: Add _Py_EnsureTstateNotNULL() macro #20571

merged 1 commit into from
Jun 1, 2020

Conversation

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

Add _Py_EnsureTstateNotNULL(tstate) macro: call Py_FatalError() if
tstate is NULL, the error message contains the current function name.

https://bugs.python.org/issue40826

Add _Py_EnsureTstateNotNULL(tstate) macro: call Py_FatalError() if
tstate is NULL, the error message contains the current function name.
@vstinner
Copy link
Member Author
vstinner commented Jun 1, 2020

This PR doesn't change PyOS_InterruptOccurred() on purpose. I prefer to write a separated PR to update PyOS_InterruptOccurred().

@vstinner vstinner merged commit 3026cad into python:master Jun 1, 2020
@vstinner vstinner deleted the tstate_null branch June 1, 2020 14:02
vstinner added a commit that referenced this pull request Jun 3, 2020
…-20618)

* bpo-40826: Add _Py_EnsureTstateNotNULL() macro (GH-20571)

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)

* bpo-40826: PyOS_InterruptOccurred() requires GIL (GH-20578)

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0