refactor: xo-gc: + GCObjectVisitor.generation_of()

Concession to narrow MutationLogStore to only use GCObjectVisitor
instead of assuming X1Collector.
This commit is contained in:
Roland Conybeare 2026-04-06 23:18:45 -04:00
commit b794f225b2
6 changed files with 36 additions and 7 deletions

View file

@ -91,6 +91,9 @@ public:
AllocInfo alloc_info(void * addr) const {
return O::iface()->alloc_info(O::data(), addr);
}
Generation generation_of(role r, const void * addr) const noexcept {
return O::iface()->generation_of(O::data(), r, addr);
}
// non-const methods (still const in router!)
void * alloc_copy(std::byte * src) {