From 073aeff785c8fc2e187e48842f795012addfdf49 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Thu, 9 Feb 2012 09:25:10 +1100 Subject: [PATCH] runtime: fix "SysReserve returned unaligned address" bug on 32-bit systems R=rsc CC=golang-dev https://golang.org/cl/5642064 --- src/pkg/runtime/malloc.goc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pkg/runtime/malloc.goc b/src/pkg/runtime/malloc.goc index 4e6bbe1b0fe..885ab0395a6 100644 --- a/src/pkg/runtime/malloc.goc +++ b/src/pkg/runtime/malloc.goc @@ -261,6 +261,8 @@ runtime·mallocinit(void) extern byte end[]; byte *want; + p = nil; + runtime·InitSizes(); // Set up the allocation arena, a contiguous area of memory where