diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2013-06-13 16:40:10 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2013-06-13 16:40:10 +0400 |
| commit | b9ddb0d8b3d18c1c2a79eae686fe20fe36c707cb (patch) | |
| tree | 733d287e9bbcd2ea0c6f83386844f3ece824603e /src/pkg/runtime/malloc.goc | |
| parent | e2d95c1f24cd32607458ba5d5bef689f2ee7b00e (diff) | |
| download | go-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/malloc.goc')
| -rw-r--r-- | src/pkg/runtime/malloc.goc | 2 |
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"); |
