summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-12-12 08:37:35 +0100
committerAraq <rumpf_a@web.de>2011-12-12 08:37:35 +0100
commit3c53c4c2b0e0e65f94a36f4a0da624a52d89c61b (patch)
treee16d7e01be333c6b446780e020ec84736ce5256f /lib
parent98ed7fbf16735704b024dcac395e750d429f6e6d (diff)
downloadNim-3c53c4c2b0e0e65f94a36f4a0da624a52d89c61b.tar.gz
compiler takes advantage of 'new(Obj|New)RC1
Diffstat (limited to 'lib')
-rwxr-xr-xlib/system/gc.nim1
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.} =