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

Issue 12686045: code review 12686045: runtime: fix network timers related crash (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by dvyukov
Modified:
11 years, 10 months ago
Reviewers:
brainman, bsiegert
CC:
golang-dev
Visibility:
Public.

Description

runtime: fix network timers related crash Fixes issue 6103.

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -3 lines) Patch
M src/pkg/net/timeout_test.go View 1 1 chunk +33 lines, -0 lines 0 comments Download
M src/pkg/runtime/netpoll.goc View 1 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 8
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
11 years, 10 months ago (2013-08-12 08:21:03 UTC) #1
brainman
LGTM for all I know about this stuff. Alex
11 years, 10 months ago (2013-08-12 23:16:37 UTC) #2
dvyukov
*** Submitted as https://code.google.com/p/go/source/detail?r=03ca8d80b840 *** runtime: fix network timers related crash Fixes issue 6103. R=golang-dev, ...
11 years, 10 months ago (2013-08-13 08:56:35 UTC) #3
bsiegert
This change broke the build on Windows, OpenBSD, NetBSD and FreeBSD, as far as I ...
11 years, 10 months ago (2013-08-13 13:55:09 UTC) #4
dvyukov
On 2013/08/13 13:55:09, bsiegert wrote: > This change broke the build on Windows, OpenBSD, NetBSD ...
11 years, 10 months ago (2013-08-13 14:04:10 UTC) #5
brainman
Dmitry, Unfortunately, I think TestDeadlineRace is not going to work. There is a race here ...
11 years, 10 months ago (2013-08-14 04:32:47 UTC) #6
dvyukov
You are right. I will address this today. On Wed, Aug 14, 2013 at 8:32 ...
11 years, 10 months ago (2013-08-14 09:51:27 UTC) #7
dvyukov
11 years, 10 months ago (2013-08-14 17:11:19 UTC) #8
sent https://codereview.appspot.com/12937043


On Wed, Aug 14, 2013 at 1:51 PM, Dmitry Vyukov <dvyukov@google.com> wrote:

> You are right.
> I will address this today.
>
>
> On Wed, Aug 14, 2013 at 8:32 AM, <alex.brainman@gmail.com> wrote:
>
>> Dmitry,
>>
>> Unfortunately, I think TestDeadlineRace is not going to work. There is a
>> race here in this test:
>>
>> 1) read blocks waiting for deadline to arrive;
>> 2) net deadline is fired;
>> 3) ticker channel is ready and deadline is extended;
>>
>> 2 and 3 are fired simultaneously. Where is guarantee that 2 happens
>> before 3? And once 3 completes 2 is no longer true. We could make ticker
>> deadline longer, so net deadline always gets fired, but that defeat the
>> purpose of this test.
>>
>> And secondly, even if everything works properly here, just waiting on
>> the ticker for 1024 times on my Windows XP takes more then 15s
>>
(https://code.google.com/p/go/**issues/detail?id=6142<https://code.google.com/...).
>> And that is
>> unacceptable for -short test.
>>
>> Alex
>>
>>
https://codereview.appspot.**com/12686045/<https://codereview.appspot.com/126...
>>
>
>
Sign in to reply to this message.

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