Method
forward_barrier
(&self, parent: Option<Gc<'gc, ()>>, child: Gc<'gc, ()>)
Source from the content-addressed store, hash-verified
| 61 | /// parent pointer(s) before collection is next triggered. |
| 62 | #[inline] |
| 63 | pub fn forward_barrier(&self, parent: Option<Gc<'gc, ()>>, child: Gc<'gc, ()>) { |
| 64 | self.context |
| 65 | .forward_barrier(parent.map(|p| unsafe { GcBox::erase(p.ptr) }), unsafe { |
| 66 | GcBox::erase(child.ptr) |
| 67 | }) |
| 68 | } |
| 69 | |
| 70 | #[inline] |
| 71 | pub(crate) fn allocate<T: Collect + 'gc>(&self, t: T) -> NonNull<GcBoxInner<T>> { |
Callers
nothing calls this directly
Tested by
no test coverage detected