diff options
| author | Joel Sing <jsing@google.com> | 2013-03-18 12:18:49 +1100 |
|---|---|---|
| committer | Joel Sing <jsing@google.com> | 2013-03-18 12:18:49 +1100 |
| commit | 7f50c23e2d18c445bfe790692e998ff91b37ddc2 (patch) | |
| tree | bf00dc76f10aa4d6cf1853d2780c6cf7c1fe9920 /src/pkg/database/sql | |
| parent | b7b4783622b4e21e7fb515b614bc651fe6210d7c (diff) | |
| download | go-7f50c23e2d18c445bfe790692e998ff91b37ddc2.tar.xz | |
runtime: 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.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/7870044
Diffstat (limited to 'src/pkg/database/sql')
0 files changed, 0 insertions, 0 deletions
