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 fee374c commit 794c4edCopy full SHA for 794c4ed
py/gc.c
@@ -154,7 +154,7 @@ void gc_init(void *start, void *end) {
154
memset(MP_STATE_MEM(gc_finaliser_table_start), 0, gc_finaliser_table_byte_len + gc_alloc_table_byte_len + ALLOC_TABLE_GAP_BYTE);
155
#else
156
// clear ATBs
157
- memset(MP_STATE_MEM(gc_alloc_table_start), 0, MP_STATE_MEM(gc_alloc_table_byte_len));
+ memset(MP_STATE_MEM(gc_alloc_table_start), 0, MP_STATE_MEM(gc_alloc_table_byte_len) + ALLOC_TABLE_GAP_BYTE);
158
#endif
159
160
// set last free ATB index to start of heap
0 commit comments