Skip to content

Commit

Permalink
py/gc: Fix max_free size.
Browse files Browse the repository at this point in the history
  • Loading branch information
iabdalkader committed Aug 31, 2024
1 parent 6e02a69 commit 57a6e3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions py/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,7 @@ void gc_info(gc_info_t *info) {

info->used *= BYTES_PER_BLOCK;
info->free *= BYTES_PER_BLOCK;
info->max_free *= BYTES_PER_BLOCK;

#if MICROPY_GC_SPLIT_HEAP_AUTO
info->max_new_split = gc_get_max_new_split();
Expand Down

0 comments on commit 57a6e3b

Please sign in to comment.