]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix bug introduced in cl/10256043
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 13 Jun 2013 12:40:10 +0000 (16:40 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 13 Jun 2013 12:40:10 +0000 (16:40 +0400)
R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/10260043

src/pkg/runtime/malloc.goc

index 12d326fe20308444edfdbada4c0c68d7ce62633b..0347b90c91418bc2871ed7ae542256cc5f51625b 100644 (file)
@@ -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");