xo-ordinaltree: notify gc when root changes in rbtree.erase
This commit is contained in:
parent
0a2dd316ee
commit
b4d12edc00
1 changed files with 6 additions and 0 deletions
|
|
@ -140,6 +140,12 @@ namespace xo {
|
||||||
* in-progress collection phase
|
* in-progress collection phase
|
||||||
**/
|
**/
|
||||||
virtual bool check_move(IObject * /*src*/) const { return false; }
|
virtual bool check_move(IObject * /*src*/) const { return false; }
|
||||||
|
/** check write barrier (if impl has write barrier)
|
||||||
|
* given an object @p parent that contains object pointer @p lhs.
|
||||||
|
**/
|
||||||
|
virtual bool check_write_barrier(IObject * /*parent*/,
|
||||||
|
IObject ** /*lhs*/,
|
||||||
|
bool /*may_throw*/) const { return true; };
|
||||||
/** write barrier for collector. perform assignment
|
/** write barrier for collector. perform assignment
|
||||||
* @code
|
* @code
|
||||||
* *lhs = rhs
|
* *lhs = rhs
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue