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

Issue 6866050: code review 6866050: net: fix data races on deadline vars (Closed)

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

Description

net: fix data races on deadline vars Fixes issue 4434. This proposal replaces the previous CL 6855110. Due to issue 599, 64-bit atomic operations should probably be avoided, so use a sync.Mutex instead. Benchmark comparisons against 025b9d070a85 on linux/386: CL 6855110: benchmark old ns/op new ns/op delta BenchmarkTCPOneShot 710024 727409 +2.45% BenchmarkTCPOneShotTimeout 758178 768620 +1.38% BenchmarkTCPPersistent 223464 228058 +2.06% BenchmarkTCPPersistentTimeout 234494 242600 +3.46% This proposal: benchmark old ns/op new ns/op delta BenchmarkTCPOneShot 710024 718492 +1.19% BenchmarkTCPOneShotTimeout 758178 748783 -1.24% BenchmarkTCPPersistent 223464 227628 +1.86% BenchmarkTCPPersistentTimeout 234494 238321 +1.63%

Patch Set 1 #

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

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

Patch Set 4 : diff -r 025b9d070a85 https://code.google.com/p/go #

Patch Set 5 : diff -r 025b9d070a85 https://code.google.com/p/go #

Total comments: 2

Patch Set 6 : diff -r c8cb5d283270 https://code.google.com/p/go #

Patch Set 7 : diff -r a32219a715c5 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -83 lines) Patch
A src/pkg/net/fd_posix_test.go View 1 1 chunk +57 lines, -0 lines 0 comments Download
M src/pkg/net/fd_unix.go View 1 2 3 4 5 11 chunks +35 lines, -53 lines 0 comments Download
M src/pkg/net/fd_windows.go View 1 2 3 4 5 6 6 chunks +10 lines, -10 lines 0 comments Download
M src/pkg/net/net.go View 1 2 3 4 5 2 chunks +34 lines, -0 lines 0 comments Download
M src/pkg/net/sendfile_freebsd.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/net/sendfile_linux.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/net/sock_posix.go View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M src/pkg/net/sockopt_posix.go View 1 1 chunk +7 lines, -14 lines 0 comments Download

Messages

Total messages: 11
dfc
Hello rsc@golang.org, dvyukov@google.com, mikioh.mikioh@gmail.com, alex.brainman@gmail.com (cc: golang-dev@googlegroups.com, remyoudompheng@gmail.com), I'd like you to review this change ...
11 years, 4 months ago (2012-12-04 11:46:26 UTC) #1
bradfitz
LGTM https://codereview.appspot.com/6866050/diff/7007/src/pkg/net/fd_windows.go File src/pkg/net/fd_windows.go (right): https://codereview.appspot.com/6866050/diff/7007/src/pkg/net/fd_windows.go#newcode299 src/pkg/net/fd_windows.go:299: // TODO(dfc,brainman) when we get a windows race ...
11 years, 4 months ago (2012-12-04 14:41:34 UTC) #2
dvyukov
https://codereview.appspot.com/6866050/diff/7007/src/pkg/net/fd_windows.go File src/pkg/net/fd_windows.go (right): https://codereview.appspot.com/6866050/diff/7007/src/pkg/net/fd_windows.go#newcode299 src/pkg/net/fd_windows.go:299: // TODO(dfc,brainman) when we get a windows race builder, ...
11 years, 4 months ago (2012-12-04 14:48:39 UTC) #3
dfc
https://codereview.appspot.com/6866050/diff/7007/src/pkg/net/fd_windows.go#newcode299 > src/pkg/net/fd_windows.go:299: // TODO(dfc,brainman) when we get a windows race > builder, revisit this. ...
11 years, 4 months ago (2012-12-05 02:00:04 UTC) #4
dfc
Hello rsc@golang.org, dvyukov@google.com, mikioh.mikioh@gmail.com, alex.brainman@gmail.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com, remyoudompheng@gmail.com), Please take another look.
11 years, 4 months ago (2012-12-05 02:27:32 UTC) #5
dfc
On 2012/12/05 02:27:32, dfc wrote: > Hello mailto:rsc@golang.org, mailto:dvyukov@google.com, mailto:mikioh.mikioh@gmail.com, > mailto:alex.brainman@gmail.com, mailto:bradfitz@golang.org (cc: mailto:golang-dev@googlegroups.com, ...
11 years, 4 months ago (2012-12-05 02:28:14 UTC) #6
brainman
LGTM
11 years, 4 months ago (2012-12-05 03:56:16 UTC) #7
dfc
On 2012/12/05 03:56:16, brainman wrote: > LGTM Thanks Alex. I'll submit this evening unless there ...
11 years, 4 months ago (2012-12-05 03:57:10 UTC) #8
mikio
LGTM
11 years, 4 months ago (2012-12-05 04:27:04 UTC) #9
dfc
*** Submitted as https://code.google.com/p/go/source/detail?r=6e0e4077f488 *** net: fix data races on deadline vars Fixes issue 4434. ...
11 years, 4 months ago (2012-12-05 04:59:18 UTC) #10
dfc
11 years, 4 months ago (2012-12-05 05:27:48 UTC) #11
Message was sent while issue was closed.
Looking good, only one builder failing at the moment,

http://code.google.com/p/go/issues/detail?id=4447
Sign in to reply to this message.

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