Skip to content

Commit cae8f10

Browse files
patch the graphviz dump
1 parent e834c88 commit cae8f10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/optimizer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1662,6 +1662,7 @@ executor_to_gv(_PyExecutorObject *executor, FILE *out)
16621662
fprintf(out, "]\n\n");
16631663

16641664
/* Write all the outgoing edges */
1665+
_PyExecutorObject *cold = _PyExecutor_GetColdExecutor();
16651666
for (uint32_t i = 0; i < executor->code_size; i++) {
16661667
_PyUOpInstruction const *inst = &executor->trace[i];
16671668
uint16_t flags = _PyUop_Flags[inst->opcode];
@@ -1675,7 +1676,7 @@ executor_to_gv(_PyExecutorObject *executor, FILE *out)
16751676
assert(exit_inst->opcode == _EXIT_TRACE || exit_inst->opcode == _DYNAMIC_EXIT);
16761677
exit = (_PyExitData *)exit_inst->operand0;
16771678
}
1678-
if (exit != NULL && exit->executor != NULL) {
1679+
if (exit != NULL && exit->executor != cold) {
16791680
fprintf(out, "executor_%p:i%d -> executor_%p:start\n", executor, i, exit->executor);
16801681
}
16811682
if (inst->opcode == _EXIT_TRACE || inst->opcode == _JUMP_TO_TOP) {

0 commit comments

Comments
 (0)