summaryrefslogtreecommitdiff
path: root/py/mpz.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-08-03 18:04:43 +1000
committerDamien George <damien@micropython.org>2024-08-07 14:19:18 +1000
commit5ff6c12c65b5ab5efdbc10718caa2375ca5ab775 (patch)
treeab6d44fa047a36bc955dbf3d2fed5e0e1902ba6e /py/mpz.h
parent6fead318322bb21e30fdcbdccf343e02dc51990f (diff)
esp32/main: Store native code as linked list instead of list on GC heap.
Finalisers that run during `gc_sweep_all()` may run native code, for example if an open file is closed and the underlying block device is implemented in native code, then the filesystem driver (eg FAT) may call into the native code. Therefore, native code must be freed after the call to `gc_sweep_all()`. That can only be achieved if the GC heap is not used to store the list of allocated native code blocks. Instead, this commit makes the native code blocks a linked list. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/mpz.h')
0 files changed, 0 insertions, 0 deletions