xo-alloc: try to make commit happen at start of GC cycle
This commit is contained in:
parent
a956320470
commit
6c7b13e443
4 changed files with 77 additions and 48 deletions
|
|
@ -144,6 +144,12 @@ namespace xo {
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
ArenaAlloc::reset(std::size_t need_z) {
|
||||
this->clear();
|
||||
this->expand(need_z);
|
||||
}
|
||||
|
||||
void
|
||||
ArenaAlloc::capture_object_statistics(capture_phase phase,
|
||||
ObjectStatistics * p_dest) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue