Move heap_size to the end of the gc_generation_stats struct

This commit is contained in:
Sergey Miryanov 2026-05-03 17:04:00 +05:00
parent 704e94e036
commit 83953c5807

View file

@ -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