mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-142448: Disable JIT tracing when monitoring is enabled (GH-142842)
This commit is contained in:
parent
28da1fb7c0
commit
c4ab024530
3 changed files with 17 additions and 6 deletions
|
|
@ -5575,9 +5575,14 @@ dummy_func(
|
|||
next_instr = this_instr;
|
||||
frame->instr_ptr = prev_instr;
|
||||
opcode = next_instr->op.code;
|
||||
bool stop_tracing = (opcode == WITH_EXCEPT_START ||
|
||||
opcode == RERAISE || opcode == CLEANUP_THROW ||
|
||||
opcode == PUSH_EXC_INFO || opcode == INTERPRETER_EXIT);
|
||||
bool stop_tracing = (
|
||||
opcode == WITH_EXCEPT_START ||
|
||||
opcode == RERAISE ||
|
||||
opcode == CLEANUP_THROW ||
|
||||
opcode == PUSH_EXC_INFO ||
|
||||
opcode == INTERPRETER_EXIT ||
|
||||
(opcode >= MIN_INSTRUMENTED_OPCODE && opcode != ENTER_EXECUTOR)
|
||||
);
|
||||
int full = !_PyJit_translate_single_bytecode_to_trace(tstate, frame, next_instr, stop_tracing ? _DEOPT : 0);
|
||||
if (full) {
|
||||
LEAVE_TRACING();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue