summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/mpthreadport.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-05-31 17:32:37 +0100
committerDamien George <damien.p.george@gmail.com>2016-06-28 11:28:52 +0100
commit757146efe3b77d0f2fa47604a2c5dfd47550c12a (patch)
tree3b761a3ad052c6e8f17862b00c795c351f2cfeb2 /cc3200/mpthreadport.c
parent17886828c8cb682092b8ba18db0723598c3a7b73 (diff)
downloadmicropython-757146efe3b77d0f2fa47604a2c5dfd47550c12a.tar.gz
micropython-757146efe3b77d0f2fa47604a2c5dfd47550c12a.zip
cc3200/mpthreadport: Scan more root pointers from thread data.
Diffstat (limited to 'cc3200/mpthreadport.c')
-rw-r--r--cc3200/mpthreadport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cc3200/mpthreadport.c b/cc3200/mpthreadport.c
index ffeba2947e..b4b2fa10a9 100644
--- a/cc3200/mpthreadport.c
+++ b/cc3200/mpthreadport.c
@@ -66,16 +66,16 @@ void mp_thread_init(void) {
void mp_thread_gc_others(void) {
mp_thread_mutex_lock(&thread_mutex, 1);
- gc_collect_root((void**)&thread, 1);
for (thread_t *th = thread; th != NULL; th = th->next) {
- gc_collect_root(&th->arg, 1);
+ gc_collect_root((void**)&th, 1);
+ gc_collect_root(&th->arg, 1); // probably not needed
if (th->id == xTaskGetCurrentTaskHandle()) {
continue;
}
if (!th->ready) {
continue;
}
- gc_collect_root(th->stack, th->stack_len);
+ gc_collect_root(th->stack, th->stack_len); // probably not needed
}
mp_thread_mutex_unlock(&thread_mutex);
}