diff options
Diffstat (limited to 'Python/context.c')
-rw-r--r-- | Python/context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/context.c b/Python/context.c index a77cd14..ef9db6a 100644 --- a/Python/context.c +++ b/Python/context.c @@ -351,6 +351,7 @@ _context_alloc(void) state->numfree--; ctx = state->freelist; state->freelist = (PyContext *)ctx->ctx_weakreflist; + OBJECT_STAT_INC(from_freelist); ctx->ctx_weakreflist = NULL; _Py_NewReference((PyObject *)ctx); } @@ -482,6 +483,7 @@ context_tp_dealloc(PyContext *self) state->numfree++; self->ctx_weakreflist = (PyObject *)state->freelist; state->freelist = self; + OBJECT_STAT_INC(to_freelist); } else #endif |