https://github.com/python/cpython/commit/0f278012e88fa9607d85bc6c7265fd394f0ac163
commit: 0f278012e88fa9607d85bc6c7265fd394f0ac163
branch: main
author: Michael Droettboom <[email protected]>
committer: markshannon <[email protected]>
date: 2024-03-19T11:06:43Z
summary:
gh-116808: Fix optimized trace length histogram (GH-116827)
files:
M Python/optimizer.c
diff --git a/Python/optimizer.c b/Python/optimizer.c
index a6d6ffe5378636..bb00e0d2575784 100644
--- a/Python/optimizer.c
+++ b/Python/optimizer.c
@@ -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];
@@ -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;
}
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]