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

Issue 6998052: code review 6998052: runtime: ignore failure from madvise (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by rsc
Modified:
11 years, 3 months ago
Reviewers:
ken3
CC:
ken2, golang-dev
Visibility:
Public.

Description

runtime: ignore failure from madvise When we release memory to the OS, if the OS doesn't want us to release it (for example, because the program executed mlockall(MCL_FUTURE)), madvise will fail. Ignore the failure instead of crashing. Fixes issue 3435.

Patch Set 1 #

Patch Set 2 : diff -r 91f2c8a77c8d https://code.google.com/p/go/ #

Patch Set 3 : diff -r 91f2c8a77c8d https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -26 lines) Patch
M src/pkg/runtime/sys_darwin_386.s View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/pkg/runtime/sys_darwin_amd64.s View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/pkg/runtime/sys_freebsd_386.s View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/pkg/runtime/sys_freebsd_amd64.s View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/pkg/runtime/sys_freebsd_arm.s View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/pkg/runtime/sys_linux_386.s View 1 1 chunk +1 line, -3 lines 0 comments Download
M src/pkg/runtime/sys_linux_amd64.s View 1 1 chunk +1 line, -3 lines 0 comments Download
M src/pkg/runtime/sys_linux_arm.s View 1 1 chunk +1 line, -4 lines 0 comments Download
M src/pkg/runtime/sys_netbsd_386.s View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/pkg/runtime/sys_netbsd_amd64.s View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/pkg/runtime/sys_openbsd_amd64.s View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 3
rsc
Hello ken2 (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 3 months ago (2012-12-22 20:06:23 UTC) #1
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=21b73dfead26 *** runtime: ignore failure from madvise When we release memory to ...
11 years, 3 months ago (2012-12-22 20:06:30 UTC) #2
ken3
11 years, 3 months ago (2012-12-22 20:16:12 UTC) #3
Message was sent while issue was closed.
lgtm
Sign in to reply to this message.

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