xo-alloc2: progress on forwarding objects [WIP]
This commit is contained in:
parent
eda51583c5
commit
9099c09dd3
18 changed files with 503 additions and 38 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