summaryrefslogtreecommitdiffstats
path: root/Python/executor_cases.c.h
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-11-09 11:19:51 (GMT)
committerGitHub <noreply@github.com>2023-11-09 11:19:51 (GMT)
commit25c49564880e6868e4c76602f9f1650f0bc71c75 (patch)
tree4708ad2263b88f3a37cf5f057976aaf5d06f9b43 /Python/executor_cases.c.h
parent6046aec377311efb89c4438f7cf412e2c6568ba1 (diff)
downloadcpython-25c49564880e6868e4c76602f9f1650f0bc71c75.zip
cpython-25c49564880e6868e4c76602f9f1650f0bc71c75.tar.gz
cpython-25c49564880e6868e4c76602f9f1650f0bc71c75.tar.bz2
GH-109369: Exit tier 2 if executor is invalid (GH-111657)
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r--Python/executor_cases.c.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h
index d94a7cc..2f4d55b 100644
--- a/Python/executor_cases.c.h
+++ b/Python/executor_cases.c.h
@@ -3273,4 +3273,10 @@
break;
}
+ case _CHECK_VALIDITY: {
+ TIER_TWO_ONLY
+ DEOPT_IF(!current_executor->base.vm_data.valid, _CHECK_VALIDITY);
+ break;
+ }
+
#undef TIER_TWO