TODO.org queues decision 141: a dyn vector is a value, copied on first write.
This commit is contained in:
parent
2010655d60
commit
c3f1adb0c3
4
TODO.org
4
TODO.org
@ -1379,6 +1379,10 @@ CLOSED: [2026-09-25]
|
|||||||
dev build wipes it at a top-level agent poll; an expression run at a stop gets a scratch temp arena.
|
dev build wipes it at a top-level agent poll; an expression run at a stop gets a scratch temp arena.
|
||||||
|
|
||||||
* Runtime
|
* Runtime
|
||||||
|
** NEXT A dyn vector is a value
|
||||||
|
Decided (141): binding, assigning, capturing or passing a dyn vector acts like a typed fixed
|
||||||
|
array's copy; the pointer is shared until either side writes, which copies first. Rules out
|
||||||
|
dyn vectors as shared references, where annotating a binding would change what prints.
|
||||||
|
|
||||||
** TODO Heap quarantine in dev
|
** TODO Heap quarantine in dev
|
||||||
A dev build could hold freed heap blocks back from reuse for a while (Zig's debug allocator), so a read after a free sees poison rather than a new owner's data.
|
A dev build could hold freed heap blocks back from reuse for a while (Zig's debug allocator), so a read after a free sees poison rather than a new owner's data.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user