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

Issue 56540046: code review 56540046: time: use an alternative method of yielding during Over... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by dfc
Modified:
10 years, 2 months ago
Reviewers:
gobot, iant
CC:
golang-codereviews, lucio, iant, dvyukov
Visibility:
Public.

Description

time: use an alternative method of yielding during Overflow timer test Fixes issue 6874. Use runtime.GC() as a stronger version of runtime.Gosched() which tends to bias the running goroutine in an otherwise idle system. This appears to reduce the worst case number of spins from 600 down to 30 on my 2 core system under high load.

Patch Set 1 #

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

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

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

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

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

Patch Set 7 : diff -r e5b12367190b https://code.google.com/p/go #

Patch Set 8 : diff -r e5b12367190b https://code.google.com/p/go #

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

Messages

Total messages: 14
dfc
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 2 months ago (2014-02-01 04:20:10 UTC) #1
lucio
yeild -> yield Lucio. On 2/1/14, dave@cheney.net <dave@cheney.net> wrote: > Reviewers: golang-codereviews, > > Message: ...
10 years, 2 months ago (2014-02-01 05:14:02 UTC) #2
iant
I have a feeling that will just cause a different overflow on other systems. What ...
10 years, 2 months ago (2014-02-01 05:21:17 UTC) #3
dfc
On Sat, Feb 1, 2014 at 4:21 PM, <iant@golang.org> wrote: > I have a feeling ...
10 years, 2 months ago (2014-02-01 05:28:28 UTC) #4
dvyukov
On 2014/02/01 05:28:28, dfc wrote: > On Sat, Feb 1, 2014 at 4:21 PM, <mailto:iant@golang.org> ...
10 years, 2 months ago (2014-02-01 10:50:40 UTC) #5
dfc
Hello golang-codereviews@googlegroups.com, lucio.dere@gmail.com, iant@golang.org, dvyukov@google.com (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years, 2 months ago (2014-02-01 11:00:35 UTC) #6
dfc
Hello golang-codereviews@googlegroups.com, lucio.dere@gmail.com, iant@golang.org, dvyukov@google.com (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years, 2 months ago (2014-02-01 11:01:15 UTC) #7
iant
On 2014/02/01 11:01:15, dfc wrote: > Hello mailto:golang-codereviews@googlegroups.com, mailto:lucio.dere@gmail.com, > mailto:iant@golang.org, mailto:dvyukov@google.com (cc: mailto:golang-codereviews@googlegroups.com), > ...
10 years, 2 months ago (2014-02-01 17:40:53 UTC) #8
dfc
On 2014/02/01 17:40:53, iant wrote: > On 2014/02/01 11:01:15, dfc wrote: > > Hello mailto:golang-codereviews@googlegroups.com, ...
10 years, 2 months ago (2014-02-01 22:42:46 UTC) #9
dfc
Hello golang-codereviews@googlegroups.com, lucio.dere@gmail.com, iant@golang.org, dvyukov@google.com (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years, 2 months ago (2014-02-01 23:14:18 UTC) #10
iant
LGTM
10 years, 2 months ago (2014-02-02 04:55:18 UTC) #11
dfc
*** Submitted as https://code.google.com/p/go/source/detail?r=143fe449d738 *** time: use an alternative method of yielding during Overflow timer ...
10 years, 2 months ago (2014-02-02 05:05:19 UTC) #12
gobot
This CL appears to have broken the freebsd-amd64 builder.
10 years, 2 months ago (2014-02-02 05:09:47 UTC) #13
dfc
10 years, 2 months ago (2014-02-02 06:21:00 UTC) #14
Ironically this is the *other* bug, the segv during the reflect tests. 

> On 2 Feb 2014, at 16:09, gobot@golang.org wrote:
> 
> This CL appears to have broken the freebsd-amd64 builder.
> 
> https://codereview.appspot.com/56540046/
Sign in to reply to this message.

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