xo-gc: utest: assert nits for release build (2)
Some checks failed
CI / smoke-test (push) Failing after 2m14s

This commit is contained in:
Roland Conybeare 2026-05-28 07:43:06 -04:00
commit 18df017333
2 changed files with 8 additions and 3 deletions

View file

@ -393,7 +393,8 @@ namespace xo {
if (recd) {
bool ok = final_stats_v->push_back(mm, recd);
assert(ok);
if (!ok)
assert(false);
}
}
@ -427,7 +428,8 @@ namespace xo {
uint32_t age = info.age();
assert(age < hard_n_age);
if (age >= hard_n_age)
assert(false);
soft_max_age = std::max(soft_max_age, age);
}

View file

@ -444,9 +444,12 @@ namespace xo {
log && log("parent not in to-space -> must be in from-space");
# ifndef NDEBUG
Generation parent_gen_from = gc.generation_of(Role::from_space(),
from_entry.parent());
assert(!parent_gen_from.is_sentinel());
if (!parent_gen_from.is_sentinel())
assert(false);
# endif
if (from_entry.is_superseded()) {
log && log("entry superseded -> discard");