xo-alloc2: tiny work on alloc iterator utest
This commit is contained in:
parent
20abea5289
commit
d09c18eb19
2 changed files with 11 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
|||
**/
|
||||
|
||||
#include "random_allocs.hpp"
|
||||
#include "arena/DArena.hpp"
|
||||
#include "padding.hpp"
|
||||
#include <xo/indentlog/scope.hpp>
|
||||
#include <xo/indentlog/print/tag.hpp>
|
||||
|
|
@ -12,6 +13,8 @@
|
|||
|
||||
namespace utest {
|
||||
using xo::mm::AllocInfo;
|
||||
using xo::mm::DArena;
|
||||
using xo::mm::ArenaConfig;
|
||||
using xo::mm::padding;
|
||||
using xo::rng::xoshiro256ss;
|
||||
using xo::facet::obj;
|
||||
|
|
@ -163,6 +166,12 @@ namespace utest {
|
|||
|
||||
}
|
||||
|
||||
/** scratch arena for iterators **/
|
||||
DArena scratch_mm = DArena::map(ArenaConfig{.name_ = "scratch",
|
||||
.size_ = 4*1024,
|
||||
.hugepage_z_ = 4*1024 });
|
||||
|
||||
|
||||
#ifdef NOT_YET // to verify iteration here, need iterator support in AAllocator
|
||||
|
||||
/* verify iteration visits all the allocs, exactly once */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue