mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Mark child of atomic_type during tracing
This commit is contained in:
parent
dcd14e4642
commit
2202b3844f
1 changed files with 7 additions and 0 deletions
7
gc.c
7
gc.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue