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

Issue 10796043: code review 10796043: runtime: preempt long-running goroutines (Closed)

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

Description

runtime: preempt long-running goroutines If a goroutine runs for more than 10ms, preempt it. Update issue 543.

Patch Set 1 #

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

Total comments: 1

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

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

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

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

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

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

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

Patch Set 10 : diff -r 64b4f1c2e1d3 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 11 : diff -r 64b4f1c2e1d3 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 12 : diff -r 64b4f1c2e1d3 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 13 : diff -r 64b4f1c2e1d3 https://dvyukov%40google.com@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -20 lines) Patch
M src/pkg/runtime/proc.c View 1 2 3 4 5 4 chunks +37 lines, -18 lines 0 comments Download
M src/pkg/runtime/proc_test.go View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
M src/pkg/runtime/stack.c View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11
dvyukov
https://codereview.appspot.com/10796043/diff/3001/src/pkg/runtime/stack.c File src/pkg/runtime/stack.c (right): https://codereview.appspot.com/10796043/diff/3001/src/pkg/runtime/stack.c#newcode251 src/pkg/runtime/stack.c:251: if(oldstatus != Grunning || m->locks || m->mallocing || m->gcing ...
10 years, 10 months ago (2013-06-29 19:40:03 UTC) #1
rsc
This patch doesn't apply cleanly to tip. Can you please update it?
10 years, 9 months ago (2013-07-18 16:25:51 UTC) #2
dvyukov
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
10 years, 9 months ago (2013-07-18 16:40:56 UTC) #3
dvyukov
Done On Thu, Jul 18, 2013 at 8:25 PM, <rsc@golang.org> wrote: > This patch doesn't ...
10 years, 9 months ago (2013-07-18 16:41:48 UTC) #4
rsc
LGTM
10 years, 9 months ago (2013-07-18 17:27:50 UTC) #5
dvyukov
I've successfully run $ GOARCH=386 ./all.bash && GOMAXPROCS=4 ./all.bash && GOARCH=386 ./all.bash && GOMAXPROCS=4 ./all.bash ...
10 years, 9 months ago (2013-07-18 21:16:55 UTC) #6
dvyukov
On 2013/07/18 21:16:55, dvyukov wrote: > I've successfully run > $ GOARCH=386 ./all.bash && GOMAXPROCS=4 ...
10 years, 9 months ago (2013-07-18 21:21:13 UTC) #7
dvyukov
*** Submitted as https://code.google.com/p/go/source/detail?r=77be25034f84 *** runtime: preempt long-running goroutines If a goroutine runs for more ...
10 years, 9 months ago (2013-07-18 21:22:18 UTC) #8
dvyukov
On 2013/07/18 21:21:13, dvyukov wrote: > On 2013/07/18 21:16:55, dvyukov wrote: > > I've successfully ...
10 years, 9 months ago (2013-07-18 21:22:33 UTC) #9
rsc
Can you please mail me a copy of the gofmt binary that crashed? You may ...
10 years, 9 months ago (2013-07-19 02:48:34 UTC) #10
dvyukov
10 years, 9 months ago (2013-07-19 09:10:18 UTC) #11
On Fri, Jul 19, 2013 at 6:48 AM, Russ Cox <rsc@golang.org> wrote:
> Can you please mail me a copy of the gofmt binary that crashed? You may have
> to gzip it to attach it to a mail message. Thanks.
>
> Why do your file names begin with "src/" instead of being absolute paths?
> Are you running with local patches?


Sorry, it was inconsistent build (phew!)
Sign in to reply to this message.

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