MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / backward_barrier

Method backward_barrier

aiscript-arena/src/context.rs:43–48  ·  view source on GitHub ↗
(&self, parent: Gc<'gc, ()>, child: Option<Gc<'gc, ()>>)

Source from the content-addressed store, hash-verified

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

Callers 2

stashMethod · 0.80
writeMethod · 0.80

Calls 3

colorMethod · 0.80
headerMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected