Skip to content

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

Merged
vstinner merged 1 commit into
python:3.8from
vstinner:opcache_fail38
Apr 24, 2020
Merged

[3.8] bpo-40048: Fix _PyCode_InitOpcache() error path (GH-19691)#19698
vstinner merged 1 commit into
python:3.8from
vstinner:opcache_fail38

Conversation

@vstinner

@vstinner vstinner commented Apr 24, 2020

Copy link
Copy Markdown
Member

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)
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