-
Joel Sing authored
On Darwin and FreeBSD, the mmap syscall return value is returned unmodified. This means that the return value will either be a valid address or a positive error number. Also check return value from mmap in SysReserve - the callers of SysReserve expect nil to be returned if the allocation failed. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7871043
3b9702c9