diff options
author | Angus Gratton <angus@redyak.com.au> | 2024-12-04 10:53:08 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-02-03 15:02:02 +1100 |
commit | 8a2ff2ca7366f605dd55c93f6b393552b365cd10 (patch) | |
tree | c0841d5fdb347ed04a6fe00e6aad0a696a67ea70 /py/modmicropython.c | |
parent | d642cce27a9a07e043211f099c31fca390f96f1a (diff) |
py/gc: Split out running finalizers to a separate pass.
Currently a finalizer may run and access memory which has already been
freed. (This happens mostly during gc_sweep_all() but could happen during
any garbage collection pass.)
Includes some speed improvement tweaks to skip empty FTB blocks. These help
compensate for the inherent slowdown of having to walk the heap twice.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'py/modmicropython.c')
0 files changed, 0 insertions, 0 deletions