]> granicus.if.org Git - python/commitdiff
bpo-30860: Always provide serialno. (#3507)
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 12 Sep 2017 00:02:24 +0000 (17:02 -0700)
committerGitHub <noreply@github.com>
Tue, 12 Sep 2017 00:02:24 +0000 (17:02 -0700)
This fixes bpo-31407.

Include/internal/mem.h

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