mirror of
https://github.com/golang/go
synced 2024-11-19 05:04:43 -07:00
runtime: fix freebsd build
TBR=r CC=golang-dev https://golang.org/cl/2296041
This commit is contained in:
parent
a2d2341e80
commit
5b7e50a0aa
@ -11,7 +11,7 @@ SysAlloc(uintptr n)
|
||||
mstats.sys += n;
|
||||
v = runtime_mmap(nil, n, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_ANON|MAP_PRIVATE, -1, 0);
|
||||
if(v < (void*)4096) {
|
||||
printf("mmap: errno=%p\n", p);
|
||||
printf("mmap: errno=%p\n", v);
|
||||
throw("mmap");
|
||||
}
|
||||
return v;
|
||||
|
Loading…
Reference in New Issue
Block a user