xo-alloc2 xo-gc: assorted utest-guided cleanup ++ coverage

This commit is contained in:
Roland Conybeare 2026-05-10 18:19:41 -04:00
commit 9b84ef8a7f
12 changed files with 111 additions and 11 deletions

View file

@ -15,7 +15,8 @@ namespace xo {
namespace mm {
void
IAllocator_Any::_fatal() {
IAllocator_Any::_fatal()
{
/* control here on uninitialized IAllocator_Any.
* Initialized instance will have specific implementation type
* e.g. IAllocator_Xfer<DArena>

View file

@ -141,13 +141,6 @@ namespace xo {
return s.sub_alloc(req_z, complete_flag);
}
std::byte *
IAllocator_DArena::alloc_copy(DArena &s,
value_type src)
{
return s.alloc_copy(src);
}
void
IAllocator_DArena::clear(DArena & s)
{

View file

@ -5,6 +5,7 @@
#include "SetupAlloc2.hpp"
#include <xo/alloc2/Arena.hpp>
#include <xo/alloc2/ArenaIterator.hpp>
#include <xo/facet/FacetRegistry.hpp>
#include <xo/indentlog/scope.hpp>
@ -21,8 +22,13 @@ namespace xo {
scope log(XO_DEBUG(true));
FacetRegistry::register_impl<AAllocator, DArena>();
FacetRegistry::register_impl<AAllocIterator, DArenaIterator>();
log && log(xtag("DArena.tseq", typeseq::id<DArena>()));
log && log(xtag("DArenaIterator.tseq", typeseq::id<DArenaIterator>()));
log && log(xtag("AAllocator.tseq", typeseq::id<AAllocator>()));
log && log(xtag("AAllocIterator.tseq", typeseq::id<AAllocIterator>()));
return true;
}