refactor: xo-gc: + GCObjectVisitor.generation_of()
Concession to narrow MutationLogStore to only use GCObjectVisitor instead of assuming X1Collector.
This commit is contained in:
parent
469570e74e
commit
b9e4a36d47
3 changed files with 13 additions and 4 deletions
|
|
@ -376,8 +376,8 @@ namespace xo {
|
|||
|
||||
/* here: mlog current */
|
||||
|
||||
Generation parent_gen_to = gc->generation_of(role::to_space(),
|
||||
from_entry.parent());
|
||||
Generation parent_gen_to = gc.generation_of(role::to_space(),
|
||||
from_entry.parent());
|
||||
|
||||
if (parent_gen_to.is_sentinel()) {
|
||||
void * parent_fr = *from_entry.p_data();
|
||||
|
|
@ -393,8 +393,8 @@ namespace xo {
|
|||
// TODO: method on AllocInfo to streamline this
|
||||
void * parent_to = *(void **)parent_fr;
|
||||
|
||||
parent_gen_to = gc->generation_of(role::to_space(),
|
||||
parent_to);
|
||||
parent_gen_to = gc.generation_of(role::to_space(),
|
||||
parent_to);
|
||||
parent_info = gc.alloc_info((std::byte *)parent_to);
|
||||
|
||||
assert(!parent_gen_to.sentinel());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue