xo-gc: copy/move step for collection phase
This commit is contained in:
parent
329a4791ed
commit
84adc35aec
10 changed files with 369 additions and 118 deletions
|
|
@ -23,10 +23,9 @@ namespace xo {
|
|||
|
||||
DInteger *
|
||||
IGCObject_DInteger::shallow_copy(const DInteger & src,
|
||||
obj<AAllocator> mm) noexcept
|
||||
obj<AAllocator> mm) noexcept
|
||||
{
|
||||
DInteger * copy = (DInteger *)mm.alloc(typeseq::id<DInteger>(),
|
||||
sizeof(DInteger));
|
||||
DInteger * copy = (DInteger *)mm.alloc_copy((std::byte *)&src);
|
||||
|
||||
if (copy)
|
||||
*copy = src;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue