xo-alloc2 : work on X1Collector unit test [WIP]
This commit is contained in:
parent
0c2cd7a64e
commit
1fd5d544f2
14 changed files with 542 additions and 41 deletions
|
|
@ -240,14 +240,18 @@ namespace xo {
|
|||
}
|
||||
|
||||
DArena::header_type *
|
||||
DArena::obj2hdr(void * obj)
|
||||
DArena::obj2hdr(void * obj) noexcept
|
||||
{
|
||||
assert(config_.store_header_flag_);
|
||||
|
||||
return (header_type *)((byte *)obj - sizeof(header_type));
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
DArena::clear() noexcept
|
||||
{
|
||||
this->free_ = lo_;
|
||||
}
|
||||
}
|
||||
} /*namespace xo*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue