Mark child of atomic_type during tracing

This commit is contained in:
Justin Ethier 2019-05-30 18:10:40 -04:00
parent dcd14e4642
commit 2202b3844f

7
gc.c
View file

@ -2239,6 +2239,13 @@ void gc_mark_black(object obj)
}
break;
}
case atomic_tag: {
atomic_type *a = (atomic_type *)obj;
object o = ck_pr_load_ptr(&(a->obj));
if (obj) {
gc_collector_mark_gray(obj, o);
}
}
default:
break;
}