xo-gc stack: genfacet for Collector + facet registry bugfix

This commit is contained in:
Roland Conybeare 2026-03-27 22:33:21 -04:00
commit 2aebb8e187
2 changed files with 7 additions and 3 deletions

View file

@ -51,8 +51,12 @@ namespace xo {
* +-------+
**/
if (*p_ptr) {
auto gco = FacetRegistry::instance().variant<AGCObject,AFacet>(*p_ptr);
gc.forward_inplace(gco.iface(), (void **)&(p_ptr->data_));
} else {
// nullptr is trivial to forward
}
}
};

View file

@ -179,7 +179,7 @@ namespace xo {
}
}
for (uint32_t j = 1; j < config_.n_generation_; ++j) {
for (uint32_t j = 0; j + 1 < config_.n_generation_; ++j) {
for (uint32_t i = 0; i < c_n_role + 1; ++i) {
mlog_storage_[i][j].visit_pools(visitor);
}