xo-umbrella2/xo-gc/utest/MlsTestutil.hpp
Roland Conybeare f229baa2e1 git subrepo clone git@github.com:Rconybea/xo-gc.git xo-gc
subrepo:
  subdir:   "xo-gc"
  merged:   "b1898230"
upstream:
  origin:   "git@github.com:Rconybea/xo-gc.git"
  branch:   "main"
  commit:   "b1898230"
git-subrepo:
  version:  "0.4.9"
  origin:   "???"
  commit:   "???"
2026-06-06 22:10:28 -04:00

27 lines
903 B
C++

/** @file MlsTestutil.hpp
*
* @author Roland Conybeare, Apr 2026
**/
#pragma once
#include <xo/gc/MutationLogStore.hpp>
namespace ut {
class MlsTestutil {
public:
using MutationLogStore = xo::mm::MutationLogStore;
using Generation = xo::mm::Generation;
static void verify_fromspace_only_logged(const MutationLogStore & mls,
Generation upto);
static void verify_tospace_only_logged(const MutationLogStore & mls,
Generation upto);
/** verify that each mutation log entry is either:
* 1. invalid. cached destination no longer current
* 2. necessary: source age > dest age
**/
static void verify_mlog_load_bearing(const MutationLogStore & mls,
Generation upto);
};
}