From 006c1830b30407c20ee8a5f5665c985a6439596e Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Mon, 6 Apr 2026 23:22:13 -0400 Subject: [PATCH] xo-gc: MutationLogStore uses only AGCObjectVisitor Previously assumed DX1Collector --- include/xo/gc/MutationLogStore.hpp | 2 +- src/gc/DX1Collector.cpp | 2 +- src/gc/MutationLogStore.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/xo/gc/MutationLogStore.hpp b/include/xo/gc/MutationLogStore.hpp index c44aa08..78042fa 100644 --- a/include/xo/gc/MutationLogStore.hpp +++ b/include/xo/gc/MutationLogStore.hpp @@ -67,7 +67,7 @@ namespace xo { * forward mutation logs, for generations 0 <= g < @p upto, * from from-space to to-space. **/ - void forward_mutation_log(DX1Collector * gc, + void forward_mutation_log(obj gc, Generation upto); private: diff --git a/src/gc/DX1Collector.cpp b/src/gc/DX1Collector.cpp index 78a298a..0baddcb 100644 --- a/src/gc/DX1Collector.cpp +++ b/src/gc/DX1Collector.cpp @@ -519,7 +519,7 @@ namespace xo { log && log("step 2b : [STUB] copy pinned"); log && log("step 3 : [STUB] forward mutation log"); - mlog_store_.forward_mutation_log(this, upto); + mlog_store_.forward_mutation_log(this->ref(), upto); log && log("step 4a : [STUB] run destructors"); log && log("step 4b : [STUB] keep reachable weak pointers"); diff --git a/src/gc/MutationLogStore.cpp b/src/gc/MutationLogStore.cpp index 24cbf86..7724487 100644 --- a/src/gc/MutationLogStore.cpp +++ b/src/gc/MutationLogStore.cpp @@ -244,7 +244,7 @@ namespace xo { } void - MutationLogStore::forward_mutation_log(DX1Collector * gc, + MutationLogStore::forward_mutation_log(obj gc, Generation upto) { /** non-zero if at least one object was rescued (from any generation) @@ -266,7 +266,7 @@ namespace xo { MutationLog * to_mlog = this->mlog_[role::to_space()][child_gen]; MutationLog * triage_mlog = this->mlog_[c_n_role][child_gen]; - auto stats = this->_forward_mutation_log_phase(gc->ref(), + auto stats = this->_forward_mutation_log_phase(gc, upto, child_gen, from_mlog,