xo-alloc2 xo-gc: assorted utest-guided cleanup ++ coverage

This commit is contained in:
Roland Conybeare 2026-05-10 18:19:41 -04:00
commit eee261d573
2 changed files with 2 additions and 2 deletions

View file

@ -78,7 +78,7 @@ namespace xo {
/** Number of guard bytes **/ /** Number of guard bytes **/
size_type guard_z() const noexcept { return p_config_->guard_z_; } size_type guard_z() const noexcept { return p_config_->guard_z_; }
/** Value (fixed test pattern) of guard byte **/ /** Value (fixed test pattern) of guard byte **/
char guard_byte() const noexcept { return p_config_->guard_byte_; } uint8_t guard_byte() const noexcept { return p_config_->guard_byte_; }
///@} ///@}

View file

@ -128,7 +128,7 @@ namespace xo {
**/ **/
bool contains(const void * addr) const noexcept { return (lo_ <= addr) && (addr < hi_); } bool contains(const void * addr) const noexcept { return (lo_ <= addr) && (addr < hi_); }
/** Truee iff address @p addr is owned by this arena and in allocated regions **/ /** True iff address @p addr is owned by this arena and in allocated regions **/
bool contains_allocated(const void * addr) const noexcept { return (lo_ <= addr) && (addr < free_); } bool contains_allocated(const void * addr) const noexcept { return (lo_ <= addr) && (addr < free_); }
/** true if arena is mapped i.e. has a reserved address range **/ /** true if arena is mapped i.e. has a reserved address range **/