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

Issue 5477057: code review 5477057: runtime: madvise and SysUnused for Linux (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by Sebastien Paolacci
Modified:
13 years, 8 months ago
Reviewers:
rsc
CC:
golang-dev, dave_cheney.net
Visibility:
Public.

Description

runtime: madvise and SysUnused for Linux SysUnused being a direct call to madvise MADV_DONTNEED.

Patch Set 1 #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -5 lines) Patch
M src/pkg/runtime/linux/386/defs.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/runtime/linux/386/sys.s View 1 1 chunk +11 lines, -0 lines 0 comments Download
M src/pkg/runtime/linux/amd64/defs.h View 1 3 chunks +4 lines, -2 lines 0 comments Download
M src/pkg/runtime/linux/amd64/sys.s View 1 1 chunk +11 lines, -0 lines 0 comments Download
M src/pkg/runtime/linux/arm/defs.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/runtime/linux/arm/sys.s View 1 2 chunks +9 lines, -0 lines 0 comments Download
M src/pkg/runtime/linux/defs.go View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/runtime/linux/defs2.go View 1 2 chunks +3 lines, -0 lines 0 comments Download
M src/pkg/runtime/linux/defs_arm.go View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/runtime/linux/mem.c View 1 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 11
Sebastien Paolacci
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
13 years, 8 months ago (2011-12-10 10:37:11 UTC) #1
Sebastien Paolacci
Note: I did cheat, the arm part is not tested (I'm currently getting illegal instructions ...
13 years, 8 months ago (2011-12-10 10:57:32 UTC) #2
dave_cheney.net
This builds fine on arm5. Is there any way I can test this works ?
13 years, 8 months ago (2011-12-10 13:33:08 UTC) #3
Sebastien Paolacci
Hello Dave, Thank you for having tested that. There's no straightforward way to assess SysUnused ...
13 years, 8 months ago (2011-12-11 08:23:53 UTC) #4
dave_cheney.net
Sure thing. A lot of the less well used syscalls don't work properly under qemu, ...
13 years, 8 months ago (2011-12-11 08:29:51 UTC) #5
Sebastien Paolacci
Ok. Tested, it works as expected. Thanks for helping out. Sebastien
13 years, 8 months ago (2011-12-11 10:35:28 UTC) #6
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=30428728ac2b *** runtime: madvise and SysUnused for Linux SysUnused being a direct ...
13 years, 8 months ago (2011-12-12 21:33:15 UTC) #7
rsc
LGTM Thanks.
13 years, 8 months ago (2011-12-12 21:33:23 UTC) #8
dave_cheney.net
Hi Sébastien, I know that SysUnused is not used yet, but would you be interested ...
13 years, 8 months ago (2011-12-14 09:28:59 UTC) #9
Sebastien Paolacci
Hi Dave, Yes it would be great if you could do that, I don't have ...
13 years, 8 months ago (2011-12-14 13:24:07 UTC) #10
dave_cheney.net
13 years, 7 months ago (2012-01-10 09:33:18 UTC) #11
In preparation for this work I have submitted
http://codereview.appspot.com/5533058/ which rebuilds the
defs_darwin_{amd64,386}.h files.

2011/12/15 Sébastien Paolacci <sebastien.paolacci@gmail.com>:
> Hi Dave,
>
> Yes it would be great if you could do that, I don't have any short
> term plan/setup for a darwin patch.
>
> Having a SysUnused implementation is a preliminary step on the memory
> scavenging path. Russ proposed to get the Unix variant done first, so
> darwin would also benefit from that patch.
>
> Sebastien
Sign in to reply to this message.

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