xo-object2: prep DList for write barrier in _assign_rest()

This commit is contained in:
Roland Conybeare 2026-05-01 20:15:45 -04:00
commit 3f7bc2e8e0

View file

@ -141,11 +141,20 @@ namespace xo {
}
void
DList::_assign_rest(DList * r)
DList::_assign_rest(DList * rest)
{
scope log(XO_DEBUG(true), "need write barrier");
this->rest_ = r;
#ifdef NOT_YET
obj<AGCObject,DList> rest_gco(rest);
mm.barrier_assign_aux(this,
nullptr /*lhs iface unused*/,
&(this->rest_),
rest_gco.iface(),
rest);
#endif
this->rest_ = rest;
}
bool