aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2013-06-13 16:40:10 +0400
committerDmitriy Vyukov <dvyukov@google.com>2013-06-13 16:40:10 +0400
commitb9ddb0d8b3d18c1c2a79eae686fe20fe36c707cb (patch)
tree733d287e9bbcd2ea0c6f83386844f3ece824603e /src/pkg/runtime
parente2d95c1f24cd32607458ba5d5bef689f2ee7b00e (diff)
downloadgo-b9ddb0d8b3d18c1c2a79eae686fe20fe36c707cb.tar.xz
runtime: fix bug introduced in cl/10256043
R=golang-dev, dave CC=golang-dev https://golang.org/cl/10260043
Diffstat (limited to 'src/pkg/runtime')
-rw-r--r--src/pkg/runtime/malloc.goc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/malloc.goc b/src/pkg/runtime/malloc.goc
index 12d326fe20..0347b90c91 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");