diff options
author | Damien George <damien.p.george@gmail.com> | 2018-05-31 23:10:48 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-06-12 11:55:29 +1000 |
commit | 522ea80f06a80fd799bd57de351373ceaeeae325 (patch) | |
tree | a0759e8d15d1643cc930c523b5fb4b5aeed7aad7 /tests/float/python36.py.exp | |
parent | 8fb95d652066b38e0dbb4fa5433de49eb601bdfe (diff) | |
download | micropython-522ea80f06a80fd799bd57de351373ceaeeae325.tar.gz micropython-522ea80f06a80fd799bd57de351373ceaeeae325.zip |
py/gc: Add gc_sweep_all() function to run all remaining finalisers.
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.
Diffstat (limited to 'tests/float/python36.py.exp')
0 files changed, 0 insertions, 0 deletions