xo-alloc2: DX1CollectorIterator infra [WIP]
This commit is contained in:
parent
1383c477f0
commit
4fb50592ac
32 changed files with 1049 additions and 185 deletions
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
namespace xo {
|
||||
namespace mm {
|
||||
|
||||
auto
|
||||
AllocInfo::guard_lo() const noexcept -> span_type
|
||||
{
|
||||
|
|
@ -18,6 +17,18 @@ namespace xo {
|
|||
p_guard_lo_ + p_config_->guard_z_);
|
||||
}
|
||||
|
||||
auto
|
||||
AllocInfo::payload() const noexcept -> span_type
|
||||
{
|
||||
if (!p_header_)
|
||||
return span_type(nullptr, nullptr);
|
||||
|
||||
byte * lo = (byte *)(p_header_ + 1);
|
||||
size_type z = this->size();
|
||||
|
||||
return span_type(lo, lo+z);
|
||||
}
|
||||
|
||||
auto
|
||||
AllocInfo::guard_hi() const noexcept -> span_type
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue