t->result now can be marked unconditionally

This commit is contained in:
HASUMI Hitoshi
2026-05-28 19:16:04 +09:00
parent 5e669560eb
commit 564726c44f
+1 -3
View File
@@ -113,9 +113,7 @@ mrb_task_mark_all(mrb_state *mrb)
/* Mark task-specific values */
mrb_gc_mark_value(mrb, t->self);
if (t->status == MRB_TASK_STATUS_DORMANT) {
mrb_gc_mark_value(mrb, t->result);
}
mrb_gc_mark_value(mrb, t->result);
mrb_gc_mark_value(mrb, t->name);
t = t->next;