diff options
author | Mark Shannon <mark@hotpy.org> | 2024-08-23 10:46:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-23 10:46:03 +0100 |
commit | 0b0f7befaddb2b5eff2811398a0f0d4604a82a90 (patch) | |
tree | 485a626615817be27498e03f56f7c631838f40de /Python/bytecodes.c | |
parent | 5fce482c9a9d18d36c8177bdd0028cd2fef9f09f (diff) | |
download | cpython-0b0f7befaddb2b5eff2811398a0f0d4604a82a90.tar.gz cpython-0b0f7befaddb2b5eff2811398a0f0d4604a82a90.zip |
GH-123232: Fix "not specialized" stats (GH-123236)
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r-- | Python/bytecodes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 62f6853fedf..fefa3af37a1 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -672,6 +672,7 @@ dummy_func( PyObject *slice = _PyBuildSlice_ConsumeRefs(PyStackRef_AsPyObjectSteal(start), PyStackRef_AsPyObjectSteal(stop)); PyObject *res_o; + OPCODE_DEFERRED_INC(BINARY_SLICE); // Can't use ERROR_IF() here, because we haven't // DECREF'ed container yet, and we still own slice. if (slice == NULL) { @@ -689,6 +690,7 @@ dummy_func( inst(STORE_SLICE, (v, container, start, stop -- )) { PyObject *slice = _PyBuildSlice_ConsumeRefs(PyStackRef_AsPyObjectSteal(start), PyStackRef_AsPyObjectSteal(stop)); + OPCODE_DEFERRED_INC(STORE_SLICE); int err; if (slice == NULL) { err = 1; |