xo-gc stack: refactor: + alloc_info() method
replicated form AAllocator facet
This commit is contained in:
parent
4a26d16cb3
commit
fd548d6816
4 changed files with 12 additions and 3 deletions
|
|
@ -227,7 +227,7 @@ namespace xo {
|
|||
bool is_forwarding_header(header_type hdr) const noexcept;
|
||||
|
||||
/** Retreive bookkeeping info for allocation at @p mem. **/
|
||||
AllocInfo alloc_info(value_type mem) const noexcept;
|
||||
AllocInfo alloc_info(void * mem) const noexcept;
|
||||
|
||||
/** true iff type with id @p tseq has known metadata
|
||||
* (i.e. has appeared in preceding call to install_type
|
||||
|
|
|
|||
|
|
@ -45,6 +45,9 @@ namespace xo {
|
|||
/** @defgroup mm-gcobjectvisitor-dx1collector-methods **/
|
||||
///@{
|
||||
// const methods
|
||||
/** allocation metadata for gc-aware data at address @p gco.
|
||||
@p gco must be the result of a call to collector's alloc() function **/
|
||||
static AllocInfo alloc_info(const DX1Collector & self, void * addr);
|
||||
|
||||
// non-const methods
|
||||
/** allocate copy of source object at address @p src.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue