mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-25 00:35:26 +00:00
implemented builtin noncopying slice
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user