1 parent 1788682 commit 757146eCopy full SHA for 757146e
1 file changed
cc3200/mpthreadport.c
@@ -66,16 +66,16 @@ void mp_thread_init(void) {
66
67
void mp_thread_gc_others(void) {
68
mp_thread_mutex_lock(&thread_mutex, 1);
69
- gc_collect_root((void**)&thread, 1);
70
for (thread_t *th = thread; th != NULL; th = th->next) {
71
- gc_collect_root(&th->arg, 1);
+ gc_collect_root((void**)&th, 1);
+ gc_collect_root(&th->arg, 1); // probably not needed
72
if (th->id == xTaskGetCurrentTaskHandle()) {
73
continue;
74
}
75
if (!th->ready) {
76
77
78
- gc_collect_root(th->stack, th->stack_len);
+ gc_collect_root(th->stack, th->stack_len); // probably not needed
79
80
mp_thread_mutex_unlock(&thread_mutex);
81
0 commit comments