refactor focusing on xo-alloc2/ xo-gc/ write-barrier

ability to inform allocator of gco->gco mutation, via AAllocator i/face.
This commit is contained in:
Roland Conybeare 2026-05-01 19:54:26 -04:00
commit 3d24a523f3
4 changed files with 15 additions and 11 deletions

View file

@ -8,6 +8,7 @@
#include <xo/object2/Array.hpp>
namespace xo {
using xo::mm::ACollector;
using xo::mm::AAllocator;
using xo::mm::AGCObject;
@ -84,8 +85,11 @@ namespace xo {
values_->resize(ix.j_slot() + 1);
}
log && log("STUB: need write barrier for GC here");
(*values_)[ix.j_slot()] = x;
//auto gc = mm.try_to_facet<ACollector>();
values_->assign_at(mm,
ix.j_slot(),
x);
}
DVariable *