summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2019-06-11 16:16:29 -0400
committerDan Halbert <halbert@halwitz.org>2019-06-11 16:16:29 -0400
commit4fc189b60c800f097db55c16768fa8c73eb72ccf (patch)
tree7829990c07bbd80c490bc03508d6e0d1c25e166b /main.c
parentc85e111675ccfb0c03aa06bd3461f5a3c026ec87 (diff)
parent036e7a332baea537d1a0b28854393fe1790b0991 (diff)
Merge latest 4.0.x fixes into master
Diffstat (limited to 'main.c')
-rwxr-xr-xmain.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index 107b5b3c2..6d7502ba4 100755
--- a/main.c
+++ b/main.c
@@ -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));