diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-06-11 16:16:29 -0400 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2019-06-11 16:16:29 -0400 |
| commit | 4fc189b60c800f097db55c16768fa8c73eb72ccf (patch) | |
| tree | 7829990c07bbd80c490bc03508d6e0d1c25e166b /main.c | |
| parent | c85e111675ccfb0c03aa06bd3461f5a3c026ec87 (diff) | |
| parent | 036e7a332baea537d1a0b28854393fe1790b0991 (diff) | |
Merge latest 4.0.x fixes into master
Diffstat (limited to 'main.c')
| -rwxr-xr-x | main.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -455,6 +455,11 @@ void gc_collect(void) { // This collects root pointers from the VFS mount table. Some of them may // have lost their references in the VM even though they are mounted. gc_collect_root((void**)&MP_STATE_VM(vfs_mount_table), sizeof(mp_vfs_mount_t) / sizeof(mp_uint_t)); + + #if CIRCUITPY_DISPLAYIO + displayio_gc_collect(); + #endif + // This naively collects all object references from an approximate stack // range. gc_collect_root((void**)sp, ((uint32_t)&_estack - sp) / sizeof(uint32_t)); |
