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

Issue 68030043: code review 68030043: testing: diagnose a potential misuse of RunParallel (Closed)

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

Description

testing: diagnose a potential misuse of RunParallel

Patch Set 1 #

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

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

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

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

Total comments: 2

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

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

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M src/pkg/testing/benchmark.go View 1 2 3 4 5 1 chunk +3 lines, -0 lines 2 comments Download

Messages

Total messages: 10
dvyukov
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
11 years, 4 months ago (2014-02-24 09:06:13 UTC) #1
dvyukov
I've changed : if n < uint64(b.N) { to: if n == 0 { because ...
11 years, 4 months ago (2014-02-24 16:22:41 UTC) #2
bradfitz
LGTM https://codereview.appspot.com/68030043/diff/80001/src/pkg/testing/benchmark.go File src/pkg/testing/benchmark.go (right): https://codereview.appspot.com/68030043/diff/80001/src/pkg/testing/benchmark.go#newcode421 src/pkg/testing/benchmark.go:421: b.Fatal("RunParallel body does not call PB.Next") s/does not/did ...
11 years, 4 months ago (2014-02-24 16:30:51 UTC) #3
dvyukov
https://codereview.appspot.com/68030043/diff/80001/src/pkg/testing/benchmark.go File src/pkg/testing/benchmark.go (right): https://codereview.appspot.com/68030043/diff/80001/src/pkg/testing/benchmark.go#newcode421 src/pkg/testing/benchmark.go:421: b.Fatal("RunParallel body does not call PB.Next") On 2014/02/24 16:30:51, ...
11 years, 4 months ago (2014-02-24 16:32:08 UTC) #4
dvyukov
*** Submitted as https://code.google.com/p/go/source/detail?r=daff95a797cc *** testing: diagnose a potential misuse of RunParallel LGTM=bradfitz R=golang-codereviews, bradfitz ...
11 years, 4 months ago (2014-02-24 16:32:33 UTC) #5
rsc
https://codereview.appspot.com/68030043/diff/120001/src/pkg/testing/benchmark.go File src/pkg/testing/benchmark.go (right): https://codereview.appspot.com/68030043/diff/120001/src/pkg/testing/benchmark.go#newcode420 src/pkg/testing/benchmark.go:420: if n == 0 { Seems like this can ...
11 years, 4 months ago (2014-02-24 16:52:02 UTC) #6
dvyukov
https://codereview.appspot.com/68030043/diff/120001/src/pkg/testing/benchmark.go File src/pkg/testing/benchmark.go (right): https://codereview.appspot.com/68030043/diff/120001/src/pkg/testing/benchmark.go#newcode420 src/pkg/testing/benchmark.go:420: if n == 0 { On 2014/02/24 16:52:02, rsc ...
11 years, 4 months ago (2014-02-24 16:57:04 UTC) #7
rsc
b.Fatal("RunParallel: body exited without PB.Next() == false")
11 years, 4 months ago (2014-02-24 16:59:23 UTC) #8
rsc
s/PB/pb/
11 years, 4 months ago (2014-02-24 16:59:50 UTC) #9
gobot
11 years, 4 months ago (2014-02-24 22:50:47 UTC) #10
Message was sent while issue was closed.
This CL appears to have broken the darwin-386 builder.
Sign in to reply to this message.

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