diff options
| author | Mark Shannon <mark@hotpy.org> | 2023-11-09 11:19:51 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-09 11:19:51 (GMT) |
| commit | 25c49564880e6868e4c76602f9f1650f0bc71c75 (patch) | |
| tree | 4708ad2263b88f3a37cf5f057976aaf5d06f9b43 /Python/bytecodes.c | |
| parent | 6046aec377311efb89c4438f7cf412e2c6568ba1 (diff) | |
| download | cpython-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/bytecodes.c')
| -rw-r--r-- | Python/bytecodes.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c index f879ea5..7010042 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -4021,6 +4021,11 @@ dummy_func( memmove(&stack_pointer[-1 - oparg], &stack_pointer[-oparg], oparg * sizeof(stack_pointer[0])); } + op(_CHECK_VALIDITY, (--)) { + TIER_TWO_ONLY + DEOPT_IF(!current_executor->base.vm_data.valid); + } + // END BYTECODES // |
