xo-ordinaltree: GC test [wip]
This commit is contained in:
parent
74d106c43e
commit
b1562b1ee6
3 changed files with 86 additions and 2 deletions
|
|
@ -92,6 +92,20 @@ namespace xo {
|
|||
**/
|
||||
virtual std::size_t _forward_children(gc::IAlloc * gc) = 0;
|
||||
};
|
||||
|
||||
/** @class Cpof
|
||||
* @brief argument to operator new used for garbage collector evacuation phase
|
||||
*
|
||||
* Tag overloaded operator new to activate allocation policy based on location
|
||||
* in memory of source object.
|
||||
**/
|
||||
class Cpof {
|
||||
public:
|
||||
explicit Cpof(gc::IAlloc * mm, const IObject * src) : mm_{mm}, src_{src} {}
|
||||
|
||||
gc::IAlloc * mm_ = nullptr;
|
||||
const void * src_ = nullptr;
|
||||
};
|
||||
}
|
||||
|
||||
/* end IObject.hpp */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue