refactor: + narrower interface for gc pointer forwarding

add AGCObjectVisitor, instead of requiring ACollector.
This commit is contained in:
Roland Conybeare 2026-04-05 23:53:02 -04:00
commit 39ae54167f
28 changed files with 94 additions and 66 deletions

View file

@ -185,12 +185,12 @@ namespace xo {
}
void
DList::forward_children(obj<ACollector> gc) noexcept
DList::visit_gco_children(obj<AGCObjectVisitor> gc) noexcept
{
//scope log(XO_DEBUG(true));
gc.forward_inplace(&head_);
gc.forward_inplace(&rest_);
gc.visit_child(&head_);
gc.visit_child(&rest_);
}
} /*namespace scm*/
} /*namespace xo*/