MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / forward_barrier

Method forward_barrier

aiscript-arena/src/context.rs:63–68  ·  view source on GitHub ↗
(&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

Calls 4

colorMethod · 0.80
headerMethod · 0.80
getMethod · 0.45
traceMethod · 0.45

Tested by

no test coverage detected