From: Shenghou Ma Date: Wed, 8 Feb 2012 22:25:10 +0000 (+1100) Subject: runtime: fix "SysReserve returned unaligned address" bug on 32-bit systems X-Git-Tag: weekly.2012-02-14~201 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=073aeff785c8fc2e187e48842f795012addfdf49;p=gostls13.git runtime: fix "SysReserve returned unaligned address" bug on 32-bit systems R=rsc CC=golang-dev https://golang.org/cl/5642064 --- diff --git a/src/pkg/runtime/malloc.goc b/src/pkg/runtime/malloc.goc index 4e6bbe1b0f..885ab0395a 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