xo-alloc, xo-object: fix alloc,gc unit tests after gc improvements
This commit is contained in:
parent
daf729292e
commit
2febec3c8c
9 changed files with 44 additions and 17 deletions
|
|
@ -233,6 +233,12 @@ namespace xo {
|
|||
return nursery_to()->page_size();
|
||||
}
|
||||
|
||||
std::size_t
|
||||
GC::hugepage_z() const
|
||||
{
|
||||
return nursery_to()->hugepage_z();
|
||||
}
|
||||
|
||||
std::size_t
|
||||
GC::nursery_from_allocated() const
|
||||
{
|
||||
|
|
|
|||
|
|
@ -75,6 +75,11 @@ namespace xo {
|
|||
return hd_->page_size();
|
||||
}
|
||||
|
||||
std::size_t
|
||||
ListAlloc::hugepage_z() const {
|
||||
return hd_->hugepage_z();
|
||||
}
|
||||
|
||||
std::size_t
|
||||
ListAlloc::size() const {
|
||||
return total_z_;
|
||||
|
|
@ -336,6 +341,7 @@ namespace xo {
|
|||
|
||||
std::unique_ptr<ArenaAlloc> new_alloc = ArenaAlloc::make(name,
|
||||
cz, debug_flag_);
|
||||
cz = new_alloc->size();
|
||||
|
||||
if (!new_alloc)
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue