1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:44:42 -07:00

runtime: fix bug introduced in cl/10256043

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/10260043
This commit is contained in:
Dmitriy Vyukov 2013-06-13 16:40:10 +04:00
parent e2d95c1f24
commit b9ddb0d8b3

View 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");