Commit b9ddb0d8 authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

runtime: fix bug introduced in cl/10256043

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/10260043
parent e2d95c1f
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment