]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-132815: Add support for JUMP_BACKWARD in specialization stats (#135606)
authorPuQing <me@puqing.work>
Tue, 17 Jun 2025 12:11:09 +0000 (20:11 +0800)
committerGitHub <noreply@github.com>
Tue, 17 Jun 2025 12:11:09 +0000 (14:11 +0200)
Misc/NEWS.d/next/Tests/2025-06-17-08-48-08.gh-issue-132815.CY1Esu.rst [new file with mode: 0644]
Python/specialize.c

diff --git a/Misc/NEWS.d/next/Tests/2025-06-17-08-48-08.gh-issue-132815.CY1Esu.rst b/Misc/NEWS.d/next/Tests/2025-06-17-08-48-08.gh-issue-132815.CY1Esu.rst
new file mode 100644 (file)
index 0000000..5b7485c
--- /dev/null
@@ -0,0 +1 @@
+Fix test__opcode: add ``JUMP_BACKWARD`` to specialization stats.
index 92f79d39d55208a97765ebbb345e2f00220f666c..fe8d04cf3442f1840483d88570f149dca355f334 100644 (file)
@@ -118,6 +118,7 @@ _Py_GetSpecializationStats(void) {
     err += add_stat_dict(stats, LOAD_GLOBAL, "load_global");
     err += add_stat_dict(stats, STORE_SUBSCR, "store_subscr");
     err += add_stat_dict(stats, STORE_ATTR, "store_attr");
+    err += add_stat_dict(stats, JUMP_BACKWARD, "jump_backward");
     err += add_stat_dict(stats, CALL, "call");
     err += add_stat_dict(stats, CALL_KW, "call_kw");
     err += add_stat_dict(stats, BINARY_OP, "binary_op");