diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-04-18 11:40:06 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-04-18 11:40:06 +0200 |
commit | 79f64d246925c19365eb27aa4571d4cb25ede312 (patch) | |
tree | c75bd7efc04a770589adb3f703273932f01261c7 /lib/system/sysstr.nim | |
parent | ef99a2cf1538a305319563674b03bdb850865d28 (diff) | |
download | Nim-79f64d246925c19365eb27aa4571d4cb25ede312.tar.gz |
simple stuff works with --gc:stack
Diffstat (limited to 'lib/system/sysstr.nim')
-rw-r--r-- | lib/system/sysstr.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/system/sysstr.nim b/lib/system/sysstr.nim index e2137e8f4..f8b93a2c3 100644 --- a/lib/system/sysstr.nim +++ b/lib/system/sysstr.nim @@ -228,7 +228,8 @@ proc setLengthSeq(seq: PGenericSeq, elemSize, newLen: int): PGenericSeq {. elif newLen < result.len: # 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): + not defined(gcMarkAndSweep) and not defined(gogc) and + not defined(gcStack): when false: # compileOption("gc", "v2"): for i in newLen..result.len-1: let len0 = gch.tempStack.len |