diff options
author | Araq <rumpf_a@web.de> | 2011-12-12 08:37:35 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-12-12 08:37:35 +0100 |
commit | 3c53c4c2b0e0e65f94a36f4a0da624a52d89c61b (patch) | |
tree | e16d7e01be333c6b446780e020ec84736ce5256f /lib | |
parent | 98ed7fbf16735704b024dcac395e750d429f6e6d (diff) | |
download | Nim-3c53c4c2b0e0e65f94a36f4a0da624a52d89c61b.tar.gz |
compiler takes advantage of 'new(Obj|New)RC1
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/system/gc.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/system/gc.nim b/lib/system/gc.nim index 66b84a8c5..02782cdd0 100755 --- a/lib/system/gc.nim +++ b/lib/system/gc.nim @@ -230,6 +230,7 @@ proc decRef(c: PCell) {.inline.} = if --c.refcount: rtlAddZCT(c) elif canBeCycleRoot(c): + # XXX if 'incRef' does this check, it should be unnecessary in 'decRef' rtlAddCycleRoot(c) proc incRef(c: PCell) {.inline.} = |