From 5560f84deeb3dc144bd4aae7c78895e1a97ff53d Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sun, 15 Feb 2026 13:16:42 -0500 Subject: [PATCH] xo-object2: streamline DList gc hooks --- xo-object2/src/object2/DList.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/xo-object2/src/object2/DList.cpp b/xo-object2/src/object2/DList.cpp index 0be056d8..35cb7223 100644 --- a/xo-object2/src/object2/DList.cpp +++ b/xo-object2/src/object2/DList.cpp @@ -33,7 +33,7 @@ namespace xo { obj car, DList * cdr) { - void * mem = mm.alloc(typeseq::id(), sizeof(DList)); + void * mem = mm.alloc_for(); return new (mem) DList(car, cdr); } @@ -159,12 +159,7 @@ namespace xo { DList * DList::shallow_copy(obj mm) const noexcept { - DList * copy = (DList *)mm.alloc_copy((std::byte *)this); - - if (copy) - *copy = *this; - - return copy; + return mm.std_copy_for(this); } auto