]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix "SysReserve returned unaligned address" bug on 32-bit systems
authorShenghou Ma <minux.ma@gmail.com>
Wed, 8 Feb 2012 22:25:10 +0000 (09:25 +1100)
committerNigel Tao <nigeltao@golang.org>
Wed, 8 Feb 2012 22:25:10 +0000 (09:25 +1100)
R=rsc
CC=golang-dev
https://golang.org/cl/5642064

src/pkg/runtime/malloc.goc

index 4e6bbe1b0fe624229fc2eb4dc483ae5c06ddebb0..885ab0395a6caff3f1e3291cbf69905b3bc4aeff 100644 (file)
@@ -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