summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--lib/system/gc_common.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/system/gc_common.nim b/lib/system/gc_common.nim
index 234b2c18a..d117c17da 100644
--- a/lib/system/gc_common.nim
+++ b/lib/system/gc_common.nim
@@ -38,6 +38,11 @@ when defined(nimTypeNames):
       if h == 1: break
 
   proc dumpNumberOfInstances* =
+    # also add the allocated strings to the list of known types:
+    if strDesc.nextType == nil:
+      strDesc.nextType = nimTypeRoot
+      strDesc.name = "string"
+      nimTypeRoot = addr strDesc
     var a: InstancesInfo
     var n = 0
     var it = nimTypeRoot