mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
This patch adds the gc_sweep_all() function which does a garbage collection without tracing any root pointers, so frees all the memory, and most importantly runs any remaining finalisers. This helps primarily for soft reset: it will close any open files, any open sockets, and help to get the system back to a clean state upon soft reset.
33 KiB
33 KiB