aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/malloc.goc
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-09-28 20:30:01 -0400
committerRuss Cox <rsc@golang.org>2010-09-28 20:30:01 -0400
commit649aab835fc8e0fef8e0456396378ed1495d41bd (patch)
treefb512b439ef066fadef5d54b811dcaab25eca5b9 /src/pkg/runtime/malloc.goc
parent949985648875b8320dae724ae51e636ee08dd6f2 (diff)
downloadgo-649aab835fc8e0fef8e0456396378ed1495d41bd.tar.xz
runtime: add mmap of null page just in case
R=r, iant, robert.swiecki, rsc1 CC=golang-dev https://golang.org/cl/1904044
Diffstat (limited to 'src/pkg/runtime/malloc.goc')
-rw-r--r--src/pkg/runtime/malloc.goc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/malloc.goc b/src/pkg/runtime/malloc.goc
index 59aeba7398..fa7164ec57 100644
--- a/src/pkg/runtime/malloc.goc
+++ b/src/pkg/runtime/malloc.goc
@@ -245,6 +245,7 @@ allocmcache(void)
void
mallocinit(void)
{
+ SysMemInit();
InitSizes();
MHeap_Init(&mheap, SysAlloc);
m->mcache = allocmcache();