summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-01-05 12:46:33 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-01-05 12:46:33 +0100
commit67ac1aef594a328997fc9d3f6b36a73fc583f2ba (patch)
tree68e9fab4988265c21d7ec3e046af00091cef0a76 /lib
parent3ae434a086145768b93405aaa35e58afab451879 (diff)
parent9f943dbc8e929f9df2bb14ad3b6ee9da138a44ac (diff)
downloadNim-67ac1aef594a328997fc9d3f6b36a73fc583f2ba.tar.gz
Merge branch 'devel' of github.com:nim-lang/Nim into devel
Diffstat (limited to 'lib')
-rw-r--r--lib/system/mmdisp.nim4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/system/mmdisp.nim b/lib/system/mmdisp.nim
index 9ac039e19..45e0c74c0 100644
--- a/lib/system/mmdisp.nim
+++ b/lib/system/mmdisp.nim
@@ -109,7 +109,6 @@ when defined(boehmgc):
       if result == nil: raiseOutOfMem()
     proc alloc0(size: Natural): pointer =
       result = alloc(size)
-      zeroMem(result, size)
     proc realloc(p: pointer, newsize: Natural): pointer =
       result = boehmRealloc(p, newsize)
       if result == nil: raiseOutOfMem()
@@ -119,8 +118,7 @@ when defined(boehmgc):
       result = boehmAlloc(size)
       if result == nil: raiseOutOfMem()
     proc allocShared0(size: Natural): pointer =
-      result = alloc(size)
-      zeroMem(result, size)
+      result = allocShared(size)
     proc reallocShared(p: pointer, newsize: Natural): pointer =
       result = boehmRealloc(p, newsize)
       if result == nil: raiseOutOfMem()