summaryrefslogtreecommitdiffstats
path: root/Python/specialize.c
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2022-02-23 11:00:28 (GMT)
committerGitHub <noreply@github.com>2022-02-23 11:00:28 (GMT)
commit424023efee5b21567b4725015ef143b627112e3c (patch)
treed4b4b0f24d27e99efa8a450c7529ec4d568a0ceb /Python/specialize.c
parent288af845a32fd2a92e3b49738faf8f2de6a7bf7c (diff)
downloadcpython-424023efee5b21567b4725015ef143b627112e3c.zip
cpython-424023efee5b21567b4725015ef143b627112e3c.tar.gz
cpython-424023efee5b21567b4725015ef143b627112e3c.tar.bz2
bpo-46329: Fix test failure when `Py_STATS` is enabled (GH-31511)
Diffstat (limited to 'Python/specialize.c')
-rw-r--r--Python/specialize.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/specialize.c b/Python/specialize.c
index b46f701..91010a5 100644
--- a/Python/specialize.c
+++ b/Python/specialize.c
@@ -160,6 +160,7 @@ _Py_GetSpecializationStats(void) {
err += add_stat_dict(stats, BINARY_OP, "binary_op");
err += add_stat_dict(stats, COMPARE_OP, "compare_op");
err += add_stat_dict(stats, UNPACK_SEQUENCE, "unpack_sequence");
+ err += add_stat_dict(stats, PRECALL, "precall");
if (err < 0) {
Py_DECREF(stats);
return NULL;
@@ -180,8 +181,6 @@ print_spec_stats(FILE *out, OpcodeStats *stats)
/* Mark some opcodes as specializable for stats,
* even though we don't specialize them yet. */
fprintf(out, "opcode[%d].specializable : 1\n", FOR_ITER);
- fprintf(out, "opcode[%d].specializable : 1\n", PRECALL);
- fprintf(out, "opcode[%d].specializable : 1\n", UNPACK_SEQUENCE);
for (int i = 0; i < 256; i++) {
if (adaptive_opcodes[i]) {
fprintf(out, "opcode[%d].specializable : 1\n", i);