diff options
| author | Shenghou Ma <minux.ma@gmail.com> | 2012-02-09 09:25:10 +1100 |
|---|---|---|
| committer | Nigel Tao <nigeltao@golang.org> | 2012-02-09 09:25:10 +1100 |
| commit | 073aeff785c8fc2e187e48842f795012addfdf49 (patch) | |
| tree | 25437b8489b09596c5efa0f0f92118e590750505 /src/pkg/runtime/malloc.goc | |
| parent | c59dc485cdbd6e70ab5e8ed1b8e2d9a7e316dbe5 (diff) | |
| download | go-073aeff785c8fc2e187e48842f795012addfdf49.tar.xz | |
runtime: fix "SysReserve returned unaligned address" bug on 32-bit systems
R=rsc
CC=golang-dev
https://golang.org/cl/5642064
Diffstat (limited to 'src/pkg/runtime/malloc.goc')
| -rw-r--r-- | src/pkg/runtime/malloc.goc | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
