From b9ddb0d8b3d18c1c2a79eae686fe20fe36c707cb Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Thu, 13 Jun 2013 16:40:10 +0400 Subject: [PATCH] runtime: fix bug introduced in cl/10256043 R=golang-dev, dave CC=golang-dev https://golang.org/cl/10260043 --- src/pkg/runtime/malloc.goc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/runtime/malloc.goc b/src/pkg/runtime/malloc.goc index 12d326fe203..0347b90c914 100644 --- a/src/pkg/runtime/malloc.goc +++ b/src/pkg/runtime/malloc.goc @@ -399,7 +399,7 @@ runtime·mallocinit(void) // So adjust it upward a little bit ourselves: 1/4 MB to get // away from the running binary image and then round up // to a MB boundary. - want = (byte*)ROUND((uintptr)end + 1<<18, 1<<20); + want = (byte*)ROUND((uintptr)end + (1<<18), 1<<20); p = runtime·SysReserve(want, bitmap_size + spans_size + arena_size); if(p == nil) runtime·throw("runtime: cannot reserve arena virtual address space");