Skip to content
Snippets Groups Projects
Commit 787f74b4 authored by Ian Lance Taylor's avatar Ian Lance Taylor
Browse files

runtime: Don't ask mmap for wrapping memory.

From-SVN: r180732
parent 3d433960
No related merge requests found
......@@ -358,6 +358,8 @@ runtime_mallocinit(void)
// away from the running binary image and then round up
// to a MB boundary.
want = (byte*)(((uintptr)end + (1<<18) + (1<<20) - 1)&~((1<<20)-1));
if(0xffffffff - (uintptr)want <= bitmap_size + arena_size)
want = 0;
p = runtime_SysReserve(want, bitmap_size + arena_size);
if(p == nil)
runtime_throw("runtime: cannot reserve arena virtual address space");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment