Skip to content

Commit 83953c5

Browse files
Move heap_size to the end of the gc_generation_stats struct
1 parent 704e94e commit 83953c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Include/internal/pycore_interp_structs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,6 @@ struct gc_generation {
181181
struct gc_generation_stats {
182182
PyTime_t ts_start;
183183
PyTime_t ts_stop;
184-
/* heap_size on the start of the collection */
185-
Py_ssize_t heap_size;
186184
/* total number of collections */
187185
Py_ssize_t collections;
188186
/* total number of collected objects */
@@ -193,6 +191,8 @@ struct gc_generation_stats {
193191
Py_ssize_t candidates;
194192
// Total duration of the collection in seconds:
195193
double duration;
194+
/* heap_size on the start of the collection */
195+
Py_ssize_t heap_size;
196196
};
197197

198198
#ifdef Py_GIL_DISABLED

0 commit comments

Comments
 (0)