Skip to content

Commit c93cd6e

Browse files
Disable JIT tracing when monitoring is enabled
1 parent 92d4aea commit c93cd6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5589,7 +5589,7 @@ dummy_func(
55895589
opcode = next_instr->op.code;
55905590
bool stop_tracing = (opcode == WITH_EXCEPT_START ||
55915591
opcode == RERAISE || opcode == CLEANUP_THROW ||
5592-
opcode == PUSH_EXC_INFO || opcode == INTERPRETER_EXIT);
5592+
opcode == PUSH_EXC_INFO || opcode == INTERPRETER_EXIT || opcode >= MIN_INSTRUMENTED_OPCODE);
55935593
int full = !_PyJit_translate_single_bytecode_to_trace(tstate, frame, next_instr, stop_tracing ? _DEOPT : 0);
55945594
if (full) {
55955595
LEAVE_TRACING();

Python/generated_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)