Skip to content

Commit f9385f6

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

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
@@ -331,6 +331,7 @@ static size_t compute_heap_size(size_t total_blocks) {
331331
static bool gc_try_add_heap(size_t failed_alloc) {
332332
// 'needed' is the size of a heap large enough to hold failed_alloc, with
333333
// the additional metadata overheads as calculated in gc_setup_area().
334+
// CIRCUITPY-CHANGE: calculation of how much to grow the heap
334335
size_t total_new_blocks = (failed_alloc + BYTES_PER_BLOCK - 1) / BYTES_PER_BLOCK;
335336
size_t needed = compute_heap_size(total_new_blocks);
336337

0 commit comments

Comments
 (0)