Skip to content
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

[3.8] bpo-40048: Fix _PyCode_InitOpcache() error path (GH-19691) #19698

Merged
merged 1 commit into from Apr 24, 2020

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Apr 24, 2020

If _PyCode_InitOpcache() fails in _PyEval_EvalFrameDefault(), use
"goto exit_eval_frame;" rather than "return NULL;" to exit the
function in a consistent state. For example, tstate->frame is now
reset properly.

(cherry picked from commit 2510494)

https://bugs.python.org/issue40048

If _PyCode_InitOpcache() fails in _PyEval_EvalFrameDefault(), use
"goto exit_eval_frame;" rather than "return NULL;" to exit the
function in a consistent state. For example, tstate->frame is now
reset properly.

(cherry picked from commit 2510494)
@vstinner vstinner merged commit d9df63d into python:3.8 Apr 24, 2020
5 checks passed
@vstinner vstinner deleted the opcache_fail38 branch Apr 24, 2020
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.

None yet

3 participants