summaryrefslogtreecommitdiffstats
path: root/Objects/codeobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r--Objects/codeobject.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index 5a87e6c..5279f6c 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -1571,10 +1571,7 @@ code_sizeof(PyCodeObject *co, PyObject *Py_UNUSED(args))
}
if (co->co_quickened != NULL) {
- Py_ssize_t count = co->co_quickened[0].entry.zero.cache_count;
- count += (PyBytes_GET_SIZE(co->co_code)+sizeof(SpecializedCacheEntry)-1)/
- sizeof(SpecializedCacheEntry);
- res += count * sizeof(SpecializedCacheEntry);
+ res += PyBytes_GET_SIZE(co->co_code);
}
return PyLong_FromSsize_t(res);