mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-116808: Fix optimized trace length histogram (GH-116827)
This commit is contained in:
parent
5405e9e5b5
commit
0f278012e8
1 changed files with 2 additions and 1 deletions
|
@ -913,6 +913,8 @@ make_executor_from_uops(_PyUOpInstruction *buffer, const _PyBloomFilter *depende
|
||||||
if (executor == NULL) {
|
if (executor == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
OPT_HIST(length, optimized_trace_length_hist);
|
||||||
|
|
||||||
/* Initialize exits */
|
/* Initialize exits */
|
||||||
for (int i = 0; i < exit_count; i++) {
|
for (int i = 0; i < exit_count; i++) {
|
||||||
executor->exits[i].executor = &COLD_EXITS[i];
|
executor->exits[i].executor = &COLD_EXITS[i];
|
||||||
|
@ -1051,7 +1053,6 @@ uop_optimize(
|
||||||
if (executor == NULL) {
|
if (executor == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
OPT_HIST(Py_SIZE(executor), optimized_trace_length_hist);
|
|
||||||
*exec_ptr = executor;
|
*exec_ptr = executor;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue