xo-alloc2: progress on forwarding objects [WIP]
This commit is contained in:
parent
257fc258ae
commit
31a8a8ae48
16 changed files with 499 additions and 37 deletions
|
|
@ -238,6 +238,16 @@ namespace xo {
|
|||
error_count_ = 0;
|
||||
last_error_ = AllocatorError();
|
||||
}
|
||||
|
||||
DArena::header_type *
|
||||
DArena::obj2hdr(void * obj)
|
||||
{
|
||||
assert(config_.store_header_flag_);
|
||||
|
||||
return (header_type *)((byte *)obj - sizeof(header_type));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
} /*namespace xo*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue