refactor: + narrower interface for gc pointer forwarding
add AGCObjectVisitor, instead of requiring ACollector.
This commit is contained in:
parent
5676a69dd3
commit
39ae54167f
28 changed files with 94 additions and 66 deletions
|
|
@ -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*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue