From b4d12edc003aeb4deb46fc7a35c3a07754df09ab Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Fri, 5 Dec 2025 09:59:47 -0500 Subject: [PATCH] xo-ordinaltree: notify gc when root changes in rbtree.erase --- include/xo/allocutil/IAlloc.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/xo/allocutil/IAlloc.hpp b/include/xo/allocutil/IAlloc.hpp index 703e968..2c78b13 100644 --- a/include/xo/allocutil/IAlloc.hpp +++ b/include/xo/allocutil/IAlloc.hpp @@ -140,6 +140,12 @@ namespace xo { * in-progress collection phase **/ 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 * @code * *lhs = rhs