summaryrefslogtreecommitdiffstats
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-05-04 07:50:24 (GMT)
committerGitHub <noreply@github.com>2024-05-04 07:50:24 (GMT)
commitda2cfc4cb6b756b819b45bf34dd735c27b74d803 (patch)
tree8255981000069b9235bb0bdfee4b0bbf3f2425a5 /Python/bytecodes.c
parent0b7814e0b638631fa2f5c81bcbab7b94064948d7 (diff)
downloadcpython-da2cfc4cb6b756b819b45bf34dd735c27b74d803.zip
cpython-da2cfc4cb6b756b819b45bf34dd735c27b74d803.tar.gz
cpython-da2cfc4cb6b756b819b45bf34dd735c27b74d803.tar.bz2
GH-113464: Remove the extra jump via `_SIDE_EXIT` in `_EXIT_TRACE` (GH-118545)
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r--Python/bytecodes.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index e8383ed..ddada96 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -4133,7 +4133,7 @@ dummy_func(
}
tier2 op(_EXIT_TRACE, (--)) {
- EXIT_IF(1);
+ EXIT_TO_TRACE();
}
tier2 op(_CHECK_VALIDITY, (--)) {
@@ -4266,10 +4266,6 @@ dummy_func(
EXIT_TO_TIER1();
}
- tier2 op(_SIDE_EXIT, (--)) {
- EXIT_TO_TRACE();
- }
-
tier2 op(_ERROR_POP_N, (target/2, unused[oparg] --)) {
frame->instr_ptr = ((_Py_CODEUNIT *)_PyFrame_GetCode(frame)->co_code_adaptive) + target;
SYNC_SP();