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

Issue 45930043: code review 45930043: syscall: mark arguments to Syscall as noescape (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by dvyukov
Modified:
10 years, 3 months ago
Reviewers:
rsc, bradfitz
CC:
golang-codereviews, mikio, bradfitz, cshapiro, khr
Visibility:
Public.

Description

syscall: mark arguments to Syscall as noescape Heap arguments to "async" syscalls will break when/if we have moving GC anyway. With this change is must not break until moving GC, because a user must reference the object in Go to preserve liveness. Otherwise the code is broken already. Reduces number of leaked params from 125 to 36 on linux.

Patch Set 1 #

Patch Set 2 : diff -r 176779a4ebed https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r d5dbdcc7f614 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 4 : diff -r 322f646feecb https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 5 : diff -r 322f646feecb https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 6 : diff -r aa175510e89e https://dvyukov%40google.com@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -2 lines) Patch
M src/cmd/gc/esc.c View 1 1 chunk +7 lines, -2 lines 0 comments Download
M src/pkg/syscall/dll_windows.go View 1 1 chunk +20 lines, -0 lines 0 comments Download
M src/pkg/syscall/syscall_linux_386.go View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M src/pkg/syscall/syscall_plan9.go View 1 1 chunk +15 lines, -0 lines 0 comments Download
M src/pkg/syscall/syscall_unix.go View 1 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 11
dvyukov
Hello golang-codereviews@googlegroups.com (cc: cshapiro@golang.org, khr@golang.org, rsc@golang.org), I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
10 years, 3 months ago (2014-01-01 14:01:07 UTC) #1
mikio
Can we have syscall_decl_$goos.go or appropriate files like other packages using go:noescape annotation? Also please ...
10 years, 3 months ago (2014-01-02 11:57:28 UTC) #2
dvyukov
On Thu, Jan 2, 2014 at 3:57 PM, <mikioh.mikioh@gmail.com> wrote: > Can we have syscall_decl_$goos.go ...
10 years, 3 months ago (2014-01-09 13:38:37 UTC) #3
mikio
On Thu, Jan 9, 2014 at 10:38 PM, Dmitry Vyukov <dvyukov@google.com> wrote: > Are you ...
10 years, 3 months ago (2014-01-10 02:22:41 UTC) #4
dvyukov
On Fri, Jan 10, 2014 at 6:22 AM, Mikio Hara <mikioh.mikioh@gmail.com> wrote: > On Thu, ...
10 years, 3 months ago (2014-01-10 09:03:36 UTC) #5
bradfitz
LGTM On Wed, Jan 1, 2014 at 6:01 AM, <dvyukov@google.com> wrote: > Reviewers: golang-codereviews, > ...
10 years, 3 months ago (2014-01-16 18:27:24 UTC) #6
dvyukov
On 2014/01/02 11:57:28, mikio wrote: > Also please don't forget socketcall/rawsocketcall on linux/386. Done
10 years, 3 months ago (2014-01-17 14:54:48 UTC) #7
dvyukov
*** Submitted as https://code.google.com/p/go/source/detail?r=c22889382a17 *** syscall: mark arguments to Syscall as noescape Heap arguments to ...
10 years, 3 months ago (2014-01-17 16:18:44 UTC) #8
rsc
Please do not submit compiler CLs without an LGTM from someone who works on the ...
10 years, 3 months ago (2014-01-17 21:12:27 UTC) #9
dvyukov
This actually reduced amount of allocated memory by garbage benchmark by 2.10% http://goperfd.appspot.com/perfgraph?builder=windows-amd64&benchmark=garbage&procs=1&metric=allocated&startcommit=1600&commitnum=20&refresh=Refresh due to ...
10 years, 3 months ago (2014-01-18 15:25:13 UTC) #10
rsc
10 years, 3 months ago (2014-01-21 18:32:04 UTC) #11
I rolled back this CL. I submitted CL 53940043 instead.

Russ
Sign in to reply to this message.

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