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 cb33130 commit 91e15afCopy full SHA for 91e15af
py/gc.c
@@ -146,6 +146,8 @@ void gc_init(void *start, void *end) {
146
MP_STATE_MEM(gc_pool_end) = end;
147
148
#if MICROPY_ENABLE_FINALISER
149
+ size_t gc_finaliser_table_byte_len = (MP_STATE_MEM(gc_alloc_table_byte_len) * BLOCKS_PER_ATB + BLOCKS_PER_FTB - 1) / BLOCKS_PER_FTB;
150
+ (void)gc_finaliser_table_byte_len; // avoid unused variable diagnostic if asserts are disabled
151
assert(MP_STATE_MEM(gc_pool_start) >= MP_STATE_MEM(gc_finaliser_table_start) + gc_finaliser_table_byte_len);
152
#endif
153
0 commit comments