xo-alloc2 : work on X1Collector unit test [WIP]

This commit is contained in:
Roland Conybeare 2025-12-15 22:43:21 -05:00
commit a757904dcc
17 changed files with 559 additions and 46 deletions

View file

@ -240,14 +240,18 @@ namespace xo {
}
DArena::header_type *
DArena::obj2hdr(void * obj)
DArena::obj2hdr(void * obj) noexcept
{
assert(config_.store_header_flag_);
return (header_type *)((byte *)obj - sizeof(header_type));
}
void
DArena::clear() noexcept
{
this->free_ = lo_;
}
}
} /*namespace xo*/