Skip to content

Commit

Permalink
pythongh-107265: Ensure de_instrument does not handle ENTER_EXECUTOR
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Aug 23, 2023
1 parent 154477b commit 4f426d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Python/instrumentation.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4f426d7

Please sign in to comment.