refactor: xo-gc: + GCObjectVisitor.generation_of()
Concession to narrow MutationLogStore to only use GCObjectVisitor instead of assuming X1Collector.
This commit is contained in:
parent
908faba2cb
commit
f0f4fc6366
10 changed files with 51 additions and 12 deletions
|
|
@ -13,6 +13,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <xo/alloc2/Generation.hpp>
|
||||
#include <xo/alloc2/role.hpp>
|
||||
#include <xo/arena/AllocInfo.hpp>
|
||||
|
||||
namespace xo {
|
||||
|
|
@ -46,6 +48,9 @@ namespace mm {
|
|||
AllocInfo alloc_info(Copaque data, void * addr) const override {
|
||||
return I::alloc_info(_dcast(data), addr);
|
||||
}
|
||||
Generation generation_of(Copaque data, role r, const void * addr) const noexcept override {
|
||||
return I::generation_of(_dcast(data), r, addr);
|
||||
}
|
||||
|
||||
// non-const methods
|
||||
void * alloc_copy(Opaque data, std::byte * src) const override {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue