From bb2710b489d8fa98c8cd2d50b7563d5322bd1491 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 --- xo-gc/utest/MutationLogStore.test.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/xo-gc/utest/MutationLogStore.test.cpp b/xo-gc/utest/MutationLogStore.test.cpp index bdeb79b8..d1721844 100644 --- a/xo-gc/utest/MutationLogStore.test.cpp +++ b/xo-gc/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() {