summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorAndreas Rumpf <andreas@andreas-laptop>2010-07-21 20:59:06 +0200
committerAndreas Rumpf <andreas@andreas-laptop>2010-07-21 20:59:06 +0200
commitcdf03b06b93d8bf5023d7c4b38a761675a20d514 (patch)
treef41ea10b1d54502600e841605d8fb0767558e5d3 /lib/system
parentde27098546773b9af5d1a1c06f68f06fadbf3008 (diff)
downloadNim-cdf03b06b93d8bf5023d7c4b38a761675a20d514.tar.gz
added system.appType magic
Diffstat (limited to 'lib/system')
-rwxr-xr-xlib/system/mmdisp.nim (renamed from lib/system/mm.nim)6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/system/mm.nim b/lib/system/mmdisp.nim
index 76b5d83bd..f28b6b931 100755
--- a/lib/system/mm.nim
+++ b/lib/system/mmdisp.nim
@@ -130,6 +130,12 @@ when defined(boehmgc):
 
   include "system/cellsets"
 elif defined(nogc):
+  # Even though we don't want the GC, we cannot simply use C's memory manager
+  # because Nimrod's runtime wants ``realloc`` to zero out the additional
+  # space which C's ``realloc`` does not. And we cannot get the old size of an
+  # object, because C does not support this operation... Even though every
+  # possible implementation has to have a way to determine the object's size.
+  # C just sucks.
   include "system/alloc"
 
   when false: