]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-96421: Insert shim frame on entry to interpreter (GH-96319)
authorMark Shannon <mark@hotpy.org>
Thu, 10 Nov 2022 12:34:57 +0000 (04:34 -0800)
committerGitHub <noreply@github.com>
Thu, 10 Nov 2022 12:34:57 +0000 (12:34 +0000)
commit1e197e63e21f77b102ff2601a549dda4b6439455
tree5d8524091404607c838bb9a0ea168c8d9c28fd6a
parentdbf2faf579b4094387d65ee41f049456ca67c446
GH-96421: Insert shim frame on entry to interpreter (GH-96319)

* Adds EXIT_INTERPRETER instruction to exit PyEval_EvalDefault()

* Simplifies RETURN_VALUE, YIELD_VALUE and RETURN_GENERATOR instructions as they no longer need to check for entry frames.
24 files changed:
Include/internal/pycore_code.h
Include/internal/pycore_frame.h
Include/internal/pycore_global_objects_fini_generated.h
Include/internal/pycore_global_strings.h
Include/internal/pycore_interp.h
Include/internal/pycore_opcode.h
Include/internal/pycore_runtime_init_generated.h
Include/opcode.h
Lib/opcode.py
Misc/NEWS.d/next/Core and Builtins/2022-10-19-15-59-08.gh-issue-96421.e22y3r.rst [new file with mode: 0644]
Objects/codeobject.c
Objects/frame_layout.md
Objects/frameobject.c
Objects/genobject.c
Python/bytecodes.c
Python/ceval.c
Python/compile.c
Python/frame.c
Python/generated_cases.c.h
Python/opcode_targets.h
Python/pylifecycle.c
Python/pystate.c
Python/traceback.c
Tools/gdb/libpython.py