Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(668)

Issue 7942043: code review 7942043: runtime: improve mmap return value checking for netbsd/... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by jsing
Modified:
12 years, 1 month ago
Reviewers:
CC:
golang-dev, rsc
Visibility:
Public.

Description

runtime: improve mmap return value checking for netbsd/openbsd Rather than just checking for ENOMEM, check for a return value of less than 4096, so that we catch other errors such as EACCES and EINVAL.

Patch Set 1 #

Patch Set 2 : diff -r ee1b8339ab04 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r ff779e477085 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 9ca85035f95a https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M src/pkg/runtime/mem_netbsd.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/mem_openbsd.c View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3
jsing
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 1 month ago (2013-03-21 12:46:15 UTC) #1
rsc
LGTM
12 years, 1 month ago (2013-03-21 20:09:30 UTC) #2
jsing
12 years, 1 month ago (2013-03-22 15:16:02 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=594ff7a67a40 ***

runtime: improve mmap return value checking for netbsd/openbsd

Rather than just checking for ENOMEM, check for a return value of less
than 4096, so that we catch other errors such as EACCES and EINVAL.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7942043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b