xo-alloc2 xo-gc: assorted utest-guided cleanup ++ coverage
This commit is contained in:
parent
04bdc763bf
commit
9b84ef8a7f
12 changed files with 111 additions and 11 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue