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
|
|
@ -24,7 +24,7 @@ namespace xo {
|
|||
|
||||
size_t
|
||||
IAllocator_DArena::reserved(const DArena & s) noexcept {
|
||||
return s.hi_ - s.lo_;
|
||||
return s.reserved();
|
||||
}
|
||||
|
||||
size_t
|
||||
|
|
@ -34,12 +34,12 @@ namespace xo {
|
|||
|
||||
size_t
|
||||
IAllocator_DArena::committed(const DArena & s) noexcept {
|
||||
return s.committed_z_;
|
||||
return s.committed();
|
||||
}
|
||||
|
||||
size_t
|
||||
IAllocator_DArena::available(const DArena & s) noexcept {
|
||||
return s.limit_ - s.free_;
|
||||
return s.available();
|
||||
}
|
||||
|
||||
size_t
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue