implemented builtin noncopying slice

This commit is contained in:
Araq
2014-05-02 08:44:03 +02:00
parent 81d4049797
commit d0438540d0
7 changed files with 42 additions and 18 deletions

View File

@@ -313,6 +313,7 @@ proc mark(gch: var TGcHeap, c: PCell) =
if not containsOrIncl(gch.marked, d):
forAllChildren(d, waMarkPrecise)
else:
# XXX no 'if c.refCount != rcBlack' here?
c.refCount = rcBlack
gcAssert gch.tempStack.len == 0, "stack not empty!"
forAllChildren(c, waMarkPrecise)