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
|
|
@ -198,16 +198,16 @@ namespace xo {
|
|||
}
|
||||
|
||||
void
|
||||
DArray::forward_children(obj<ACollector> gc) noexcept
|
||||
DArray::visit_gco_children(obj<AGCObjectVisitor> gc) noexcept
|
||||
{
|
||||
scope log(XO_DEBUG(false));
|
||||
|
||||
for (size_type i = 0; i < size_; ++i) {
|
||||
log && log("DArray::forward_children (loop)", xtag("i", i), xtag("z", size_));
|
||||
log && log("DArray::visit_gco_children (loop)", xtag("i", i), xtag("z", size_));
|
||||
|
||||
obj<AGCObject> & elt = elts_[i];
|
||||
|
||||
gc.forward_inplace(&elt);
|
||||
gc.visit_child(&elt);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue