Skip to content

Commit 7f97695

Browse files
tannewtdhalbert
andauthored
Update py/gc.c
Co-authored-by: Dan Halbert <[email protected]>
1 parent f9385f6 commit 7f97695

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

py/gc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ static bool gc_try_add_heap(size_t failed_alloc) {
333333
// the additional metadata overheads as calculated in gc_setup_area().
334334
// CIRCUITPY-CHANGE: calculation of how much to grow the heap
335335
size_t total_new_blocks = (failed_alloc + BYTES_PER_BLOCK - 1) / BYTES_PER_BLOCK;
336+
// CIRCUITPY-CHANGE
336337
size_t needed = compute_heap_size(total_new_blocks);
337338

338339
size_t avail = gc_get_max_new_split();

0 commit comments

Comments
 (0)