xo-alloc2: progress on forwarding objects [WIP]

This commit is contained in:
Roland Conybeare 2025-12-15 00:56:49 -05:00
commit 31a8a8ae48
16 changed files with 499 additions and 37 deletions

View file

@ -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*/