(&self, parent: Gc<'gc, ()>, child: Option<Gc<'gc, ()>>)
| 41 | /// pointer(s) before collection is next triggered. |
| 42 | #[inline] |
| 43 | pub fn backward_barrier(&self, parent: Gc<'gc, ()>, child: Option<Gc<'gc, ()>>) { |
| 44 | self.context.backward_barrier( |
| 45 | unsafe { GcBox::erase(parent.ptr) }, |
| 46 | child.map(|p| unsafe { GcBox::erase(p.ptr) }), |
| 47 | ) |
| 48 | } |
| 49 | |
| 50 | /// IF we are in the marking phase AND the `parent` pointer (if given) is colored black, AND |
| 51 | /// the `child` is colored white, then immediately change the `child` to gray and enqueue it |