first compiling version of the new GC

This commit is contained in:
Araq 2015-11-30 00:23:23 +01:00
commit 070403ca5e
2 changed files with 46 additions and 19 deletions

View file

@ -229,7 +229,7 @@ proc setLengthSeq(seq: PGenericSeq, elemSize, newLen: int): PGenericSeq {.
# we need to decref here, otherwise the GC leaks!
when not defined(boehmGC) and not defined(nogc) and
not defined(gcMarkAndSweep) and not defined(gogc):
when compileOption("gc", "v2"):
when false: # compileOption("gc", "v2"):
for i in newLen..result.len-1:
let len0 = gch.tempStack.len
forAllChildrenAux(cast[pointer](cast[ByteAddress](result) +%