summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-01-15 10:30:33 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-01-16 23:04:53 +0100
commit915cc86f5d022e2a2eb3bbe03e3e3ec1c9e3e60a (patch)
tree06a4677de0f851a88a87b07076856e8d51c59b0a /lib
parent704eae84951df114f5aa9cc40fdecb2ad788ea16 (diff)
downloadNim-915cc86f5d022e2a2eb3bbe03e3e3ec1c9e3e60a.tar.gz
docs for the heap dump feature
Diffstat (limited to 'lib')
-rw-r--r--lib/system/gc_common.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/system/gc_common.nim b/lib/system/gc_common.nim
index 64acb7b24..aec8b67cb 100644
--- a/lib/system/gc_common.nim
+++ b/lib/system/gc_common.nim
@@ -26,6 +26,7 @@ when defined(nimTypeNames):
       it = it.nextType
 
 template decTypeSize(cell, t) =
+  # XXX this needs to use atomics for multithreaded apps!
   when defined(nimTypeNames):
     if t.kind in {tyString, tySequence}:
       let len = cast[PGenericSeq](cellToUsr(cell)).len