From 83953c58072cc7ab12d985c865d98ebe23cd8fbc Mon Sep 17 00:00:00 2001 From: Sergey Miryanov Date: Sun, 3 May 2026 17:04:00 +0500 Subject: [PATCH] Move heap_size to the end of the gc_generation_stats struct --- Include/internal/pycore_interp_structs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/internal/pycore_interp_structs.h b/Include/internal/pycore_interp_structs.h index b84bbbe7b35..b9b9d22920f 100644 --- a/Include/internal/pycore_interp_structs.h +++ b/Include/internal/pycore_interp_structs.h @@ -181,8 +181,6 @@ struct gc_generation { struct gc_generation_stats { PyTime_t ts_start; PyTime_t ts_stop; - /* heap_size on the start of the collection */ - Py_ssize_t heap_size; /* total number of collections */ Py_ssize_t collections; /* total number of collected objects */ @@ -193,6 +191,8 @@ struct gc_generation_stats { Py_ssize_t candidates; // Total duration of the collection in seconds: double duration; + /* heap_size on the start of the collection */ + Py_ssize_t heap_size; }; #ifdef Py_GIL_DISABLED