diff options
author | Dong-hee Na <donghee.na@python.org> | 2023-08-23 15:45:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-23 15:45:20 (GMT) |
commit | 2135bcd3ca9538c6782129f9a5837d62c2036102 (patch) | |
tree | 0766061630427379f867a4e2de86742332e6edb0 /Python | |
parent | 3f61cf646d0506baa0c0c2118f05110446519c62 (diff) | |
download | cpython-2135bcd3ca9538c6782129f9a5837d62c2036102.zip cpython-2135bcd3ca9538c6782129f9a5837d62c2036102.tar.gz cpython-2135bcd3ca9538c6782129f9a5837d62c2036102.tar.bz2 |
gh-107265: Ensure de_instrument does not handle ENTER_EXECUTOR (#108366)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/instrumentation.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/instrumentation.c b/Python/instrumentation.c index a7a5b4a..f77c2e6 100644 --- a/Python/instrumentation.c +++ b/Python/instrumentation.c @@ -564,6 +564,7 @@ de_instrument(PyCodeObject *code, int i, int event) _Py_CODEUNIT *instr = &_PyCode_CODE(code)[i]; uint8_t *opcode_ptr = &instr->op.code; int opcode = *opcode_ptr; + assert(opcode != ENTER_EXECUTOR); if (opcode == INSTRUMENTED_LINE) { opcode_ptr = &code->_co_monitoring->lines[i].original_opcode; opcode = *opcode_ptr; |