bpo-30860: Always provide serialno. (#3507)

This fixes bpo-31407.
This commit is contained in:
Eric Snow 2017-09-11 17:02:24 -07:00 committed by GitHub
parent 9d984fd2b0
commit ba6d5d1def
1 changed files with 1 additions and 1 deletions

View File

@ -40,8 +40,8 @@ struct _pymem_runtime_state {
size_t ntimes_arena_allocated; size_t ntimes_arena_allocated;
poolp usedpools[MAX_POOLS]; poolp usedpools[MAX_POOLS];
Py_ssize_t num_allocated_blocks; Py_ssize_t num_allocated_blocks;
size_t serialno; /* incremented on each debug {m,re}alloc */
#endif /* WITH_PYMALLOC */ #endif /* WITH_PYMALLOC */
size_t serialno; /* incremented on each debug {m,re}alloc */
}; };
PyAPI_FUNC(void) _PyMem_Initialize(struct _pymem_runtime_state *); PyAPI_FUNC(void) _PyMem_Initialize(struct _pymem_runtime_state *);