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

Issue 6610064: code review 6610064: race: syscall changes (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by dvyukov
Modified:
12 years, 5 months ago
Reviewers:
CC:
rsc, bradfitz, brainman, golang-dev
Visibility:
Public.

Description

race: syscall changes This is a part of a bigger change that adds data race detection feature: http://codereview.appspot.com/6456044 The purpose of this patch is to provide coarse-grained synchronization between all Read() and Write() calls.

Patch Set 1 #

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

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

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

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

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

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

Total comments: 1

Patch Set 8 : diff -r 7b037816cd5c https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 9 : diff -r 7b037816cd5c https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 10 : diff -r 7b037816cd5c https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 11 : diff -r 3350c94fe6b7 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 12 : diff -r 3350c94fe6b7 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 13 : diff -r 3350c94fe6b7 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 14 : diff -r 3350c94fe6b7 https://dvyukov%40google.com@code.google.com/p/go/ #

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

Patch Set 16 : diff -r b9906e2737fa https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -66 lines) Patch
M src/pkg/syscall/exec_unix.go View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A src/pkg/syscall/race.go View 1 2 3 4 5 6 7 8 1 chunk +22 lines, -0 lines 0 comments Download
A src/pkg/syscall/race0.go View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -0 lines 0 comments Download
M src/pkg/syscall/syscall_darwin.go View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/syscall/syscall_freebsd.go View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/syscall/syscall_linux.go View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/syscall/syscall_netbsd.go View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/syscall/syscall_openbsd.go View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/syscall/syscall_plan9.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -1 line 0 comments Download
M src/pkg/syscall/syscall_unix.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/syscall/syscall_windows.go View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_darwin_386.go View 1 2 3 4 5 6 7 4 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/syscall/zsyscall_darwin_amd64.go View 1 2 3 4 5 6 7 4 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/syscall/zsyscall_freebsd_386.go View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/syscall/zsyscall_freebsd_amd64.go View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/syscall/zsyscall_linux_386.go View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/syscall/zsyscall_linux_amd64.go View 1 2 3 4 5 6 7 4 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/syscall/zsyscall_linux_arm.go View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/syscall/zsyscall_netbsd_386.go View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/syscall/zsyscall_netbsd_amd64.go View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/syscall/zsyscall_openbsd_386.go View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/syscall/zsyscall_openbsd_amd64.go View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 13
dvyukov
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
12 years, 5 months ago (2012-10-07 14:01:50 UTC) #1
rsc
https://codereview.appspot.com/6610064/diff/6019/src/pkg/syscall/syscall_darwin.go File src/pkg/syscall/syscall_darwin.go (left): https://codereview.appspot.com/6610064/diff/6019/src/pkg/syscall/syscall_darwin.go#oldcode165 src/pkg/syscall/syscall_darwin.go:165: //sys Read(fd int, p []byte) (n int, err error) ...
12 years, 5 months ago (2012-10-07 14:22:55 UTC) #2
dvyukov
makes sense On Sun, Oct 7, 2012 at 7:22 AM, <rsc@golang.org> wrote: > > https://codereview.appspot.**com/6610064/diff/6019/src/pkg/** ...
12 years, 5 months ago (2012-10-07 14:37:29 UTC) #3
dvyukov
On 2012/10/07 14:37:29, dvyukov wrote: > makes sense > > > On Sun, Oct 7, ...
12 years, 5 months ago (2012-10-07 17:57:57 UTC) #4
dvyukov
On 2012/10/07 17:57:57, dvyukov wrote: > On 2012/10/07 14:37:29, dvyukov wrote: > > makes sense ...
12 years, 5 months ago (2012-10-07 17:59:42 UTC) #5
bradfitz
It's a Windows issue. Note this part of the diff: -pkg syscall (windows-amd64), func Read(Handle, ...
12 years, 5 months ago (2012-10-07 18:43:32 UTC) #6
brainman
> ... > any ideas? Like Brad said, syscall.Read and syscall.Write have different signature on ...
12 years, 5 months ago (2012-10-08 00:32:37 UTC) #7
dvyukov
Hello rsc@golang.org, bradfitz@golang.org, alex.brainman@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 5 months ago (2012-10-08 11:25:43 UTC) #8
dvyukov
On 2012/10/08 00:32:37, brainman wrote: > > ... > > any ideas? > > Like ...
12 years, 5 months ago (2012-10-08 11:27:18 UTC) #9
brainman
On 2012/10/08 11:27:18, dvyukov wrote: > ... > Now I have version of Read/Write in ...
12 years, 5 months ago (2012-10-08 22:34:44 UTC) #10
dvyukov
On Tue, Oct 9, 2012 at 2:34 AM, <alex.brainman@gmail.com> wrote: > On 2012/10/08 11:27:18, dvyukov ...
12 years, 5 months ago (2012-10-09 03:57:52 UTC) #11
rsc
LGTM
12 years, 5 months ago (2012-10-09 15:44:50 UTC) #12
dvyukov
12 years, 5 months ago (2012-10-09 16:52:24 UTC) #13
*** Submitted as http://code.google.com/p/go/source/detail?r=ba847b110365 ***

race: syscall changes
This is a part of a bigger change that adds data race detection feature:
http://codereview.appspot.com/6456044
The purpose of this patch is to provide coarse-grained synchronization
between all Read() and Write() calls.

R=rsc, bradfitz, alex.brainman
CC=golang-dev
http://codereview.appspot.com/6610064
Sign in to reply to this message.

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