xo-gc stack: genfacet for Collector + facet registry bugfix
This commit is contained in:
parent
eba6e437be
commit
2aebb8e187
2 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue