Descriptionruntime: correct mmap return value checking on netbsd/openbsd
The current SysAlloc implementation suffers from a signed vs unsigned
comparision bug. Since the error code from mmap is negated, the
unsigned comparision of v < 4096 is always false on error. Fix this
by switching to the darwin/freebsd/linux mmap model and leave the mmap
return value unmodified.
Patch Set 1 : diff -r b5b5c246be0c https://go.googlecode.com/hg/ #Patch Set 2 : diff -r f12b24ea373f https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 9f7966fdf741 https://go.googlecode.com/hg/ #
MessagesTotal messages: 3
|