Skip to content

Commit

Permalink
pythongh-116808: Fix optimized trace length histogram (pythonGH-116827)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom authored Mar 19, 2024
1 parent 5405e9e commit 0f27801
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Python/optimizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,8 @@ make_executor_from_uops(_PyUOpInstruction *buffer, const _PyBloomFilter *depende
if (executor == NULL) {
return NULL;
}
OPT_HIST(length, optimized_trace_length_hist);

/* Initialize exits */
for (int i = 0; i < exit_count; i++) {
executor->exits[i].executor = &COLD_EXITS[i];
Expand Down Expand Up @@ -1051,7 +1053,6 @@ uop_optimize(
if (executor == NULL) {
return -1;
}
OPT_HIST(Py_SIZE(executor), optimized_trace_length_hist);
*exec_ptr = executor;
return 1;
}
Expand Down

0 comments on commit 0f27801

Please sign in to comment.