We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fa7e1b commit c781896Copy full SHA for c781896
Python/instrumentation.c
@@ -185,8 +185,7 @@ is_instrumented(int opcode)
185
{
186
assert(opcode != 0);
187
assert(opcode != RESERVED);
188
- assert(opcode != ENTER_EXECUTOR);
189
- return opcode >= MIN_INSTRUMENTED_OPCODE;
+ return opcode != ENTER_EXECUTOR && opcode >= MIN_INSTRUMENTED_OPCODE;
190
}
191
192
#ifndef NDEBUG
Python/optimizer.c
@@ -671,7 +671,7 @@ translate_bytecode_to_trace(
671
if (trace_stack_depth == 0) {
672
DPRINTF(2, "Trace stack underflow\n");
673
OPT_STAT_INC(trace_stack_underflow);
674
- goto done;
+ return 0;
675
676
677
uint32_t orig_oparg = oparg; // For OPARG_TOP/BOTTOM
0 commit comments