xo-ordinaltree: GC test [wip]

This commit is contained in:
Roland Conybeare 2025-12-01 22:25:41 -05:00
commit b1562b1ee6
3 changed files with 86 additions and 2 deletions

View file

@ -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 */