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

Method barrier

aiscript-arena/src/context.rs:480–483  ·  view source on GitHub ↗
(this: &Context, parent: GcBox)

Source from the content-addressed store, hash-verified

478 // often) to promote the inlining of the write barrier.
479 #[cold]
480 fn barrier(this: &Context, parent: GcBox) {
481 parent.header().set_color(GcColor::Gray);
482 this.gray_again.borrow_mut().push(parent);
483 }
484 barrier(self, parent);
485 }
486 }

Callers

nothing calls this directly

Calls 4

set_colorMethod · 0.80
headerMethod · 0.80
pushMethod · 0.80
borrow_mutMethod · 0.45

Tested by

no test coverage detected