From 3f7bc2e8e02d6de6fdbf202a811880b038eaa9b0 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Fri, 1 May 2026 20:15:45 -0400 Subject: [PATCH] xo-object2: prep DList for write barrier in _assign_rest() --- src/object2/DList.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/object2/DList.cpp b/src/object2/DList.cpp index f6e5d49..75bde74 100644 --- a/src/object2/DList.cpp +++ b/src/object2/DList.cpp @@ -141,11 +141,20 @@ namespace xo { } void - DList::_assign_rest(DList * r) + DList::_assign_rest(DList * rest) { scope log(XO_DEBUG(true), "need write barrier"); - this->rest_ = r; +#ifdef NOT_YET + obj rest_gco(rest); + + mm.barrier_assign_aux(this, + nullptr /*lhs iface unused*/, + &(this->rest_), + rest_gco.iface(), + rest); +#endif + this->rest_ = rest; } bool