first compiling version of the new GC
This commit is contained in:
parent
0d8c762452
commit
070403ca5e
2 changed files with 46 additions and 19 deletions
|
|
@ -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) +%
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue