We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9385f6 commit 7f97695Copy full SHA for 7f97695
py/gc.c
@@ -333,6 +333,7 @@ static bool gc_try_add_heap(size_t failed_alloc) {
333
// the additional metadata overheads as calculated in gc_setup_area().
334
// CIRCUITPY-CHANGE: calculation of how much to grow the heap
335
size_t total_new_blocks = (failed_alloc + BYTES_PER_BLOCK - 1) / BYTES_PER_BLOCK;
336
+ // CIRCUITPY-CHANGE
337
size_t needed = compute_heap_size(total_new_blocks);
338
339
size_t avail = gc_get_max_new_split();
0 commit comments