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

Issue 6250072: code review 6250072: time: fix deadlock in Sleep(0) (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 7 months ago by dvyukov
Modified:
13 years, 7 months ago
Reviewers:
CC:
golang-dev, r, rsc, pah
Visibility:
Public.

Description

time: fix deadlock in Sleep(0) See time/sleep_test.go for repro.

Patch Set 1 #

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

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

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

Total comments: 2

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

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

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

Total comments: 1

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -1 line) Patch
M src/pkg/runtime/time.goc View 1 1 chunk +4 lines, -1 line 0 comments Download
M src/pkg/time/sleep_test.go View 1 2 3 4 5 6 7 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 10
dvyukov
Hello golang-dev@googlegroups.com (cc: patrick.allen.higgins@gmail.com), I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
13 years, 7 months ago (2012-05-29 17:51:51 UTC) #1
r
LGTM http://codereview.appspot.com/6250072/diff/3003/src/pkg/time/sleep_test.go File src/pkg/time/sleep_test.go (right): http://codereview.appspot.com/6250072/diff/3003/src/pkg/time/sleep_test.go#newcode227 src/pkg/time/sleep_test.go:227: func TestSleepZero(t *testing.T) { obscure enough to deserve ...
13 years, 7 months ago (2012-05-29 17:56:04 UTC) #2
dvyukov
http://codereview.appspot.com/6250072/diff/3003/src/pkg/time/sleep_test.go File src/pkg/time/sleep_test.go (right): http://codereview.appspot.com/6250072/diff/3003/src/pkg/time/sleep_test.go#newcode227 src/pkg/time/sleep_test.go:227: func TestSleepZero(t *testing.T) { On 2012/05/29 17:56:04, r wrote: ...
13 years, 7 months ago (2012-05-29 17:58:36 UTC) #3
rsc
I don't understand why the test is so complex. It looks like func TestSleepZero(t *testing.t) ...
13 years, 7 months ago (2012-05-29 17:58:50 UTC) #4
dvyukov
On Tue, May 29, 2012 at 9:58 PM, Russ Cox <rsc@golang.org> wrote: > I don't ...
13 years, 7 months ago (2012-05-29 18:02:11 UTC) #5
dvyukov
On Tue, May 29, 2012 at 10:02 PM, Dmitry Vyukov <dvyukov@google.com> wrote: > On Tue, ...
13 years, 7 months ago (2012-05-29 18:03:33 UTC) #6
rsc
Please add that comment to the test.
13 years, 7 months ago (2012-05-29 18:03:42 UTC) #7
dvyukov
On 2012/05/29 18:03:42, rsc wrote: > Please add that comment to the test. Done. PTAL.
13 years, 7 months ago (2012-05-29 18:14:14 UTC) #8
rsc
LGTM Thanks for the explanation. http://codereview.appspot.com/6250072/diff/4006/src/pkg/time/sleep_test.go File src/pkg/time/sleep_test.go (right): http://codereview.appspot.com/6250072/diff/4006/src/pkg/time/sleep_test.go#newcode229 src/pkg/time/sleep_test.go:229: // Sleep(0) sets G's ...
13 years, 7 months ago (2012-05-29 18:26:55 UTC) #9
dvyukov
13 years, 7 months ago (2012-05-29 18:31:11 UTC) #10
*** Submitted as http://code.google.com/p/go/source/detail?r=085b20e6e0aa ***

time: fix deadlock in Sleep(0)
See time/sleep_test.go for repro.

R=golang-dev, r, rsc
CC=golang-dev, patrick.allen.higgins
http://codereview.appspot.com/6250072
Sign in to reply to this message.

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