Skip to content

Commit 757146e

Browse files
committed
cc3200/mpthreadport: Scan more root pointers from thread data.
1 parent 1788682 commit 757146e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cc3200/mpthreadport.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,16 @@ void mp_thread_init(void) {
6666

6767
void mp_thread_gc_others(void) {
6868
mp_thread_mutex_lock(&thread_mutex, 1);
69-
gc_collect_root((void**)&thread, 1);
7069
for (thread_t *th = thread; th != NULL; th = th->next) {
71-
gc_collect_root(&th->arg, 1);
70+
gc_collect_root((void**)&th, 1);
71+
gc_collect_root(&th->arg, 1); // probably not needed
7272
if (th->id == xTaskGetCurrentTaskHandle()) {
7373
continue;
7474
}
7575
if (!th->ready) {
7676
continue;
7777
}
78-
gc_collect_root(th->stack, th->stack_len);
78+
gc_collect_root(th->stack, th->stack_len); // probably not needed
7979
}
8080
mp_thread_mutex_unlock(&thread_mutex);
8181
}

0 commit comments

Comments
 (0)