From 4ad5498d72b42c96687a3e8f6d7e3934fc71454a Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sun, 19 Apr 2026 19:59:08 -0400 Subject: [PATCH] xo-gc: utest: tidy sanitize flag --- utest/MutationLogStore.test.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/utest/MutationLogStore.test.cpp b/utest/MutationLogStore.test.cpp index bdeb79b..d172184 100644 --- a/utest/MutationLogStore.test.cpp +++ b/utest/MutationLogStore.test.cpp @@ -67,6 +67,8 @@ namespace ut { debug_flag_{debug_flag} {} + bool sanitize_flag() const noexcept { return true; } + /** number of generations in gco store **/ uint32_t n_gen_ = 0; /** object prommotes on surviving this many gc cycles **/ @@ -389,11 +391,7 @@ namespace ut { // // reset (+ perhaps clean) from-space - { - // TODO: consider moving sanitize_flag to Testcase - bool sanitize_flag = true; - gcos.cleanup_phase(gk, sanitize_flag); - } + gcos.cleanup_phase(gk, tc.sanitize_flag()); // scan {gcos, mls} to collect counters in *gcos.verify_stats() {