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

Issue 7448048: code review 7448048: runtime: add network polling support into scheduler (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by dvyukov
Modified:
11 years, 1 month ago
Reviewers:
0xe2.0x9a.0x9b
CC:
golang-dev, bradfitz, mikio, rsc
Visibility:
Public.

Description

runtime: add network polling support into scheduler This is a part of the bigger change that moves network poller into runtime: https://codereview.appspot.com/7326051/

Patch Set 1 #

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

Total comments: 1

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

Total comments: 3

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

Total comments: 1

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

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

Total comments: 3

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

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

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -2 lines) Patch
A src/pkg/runtime/netpoll_stub.c View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
M src/pkg/runtime/proc.c View 1 2 3 4 5 6 9 chunks +68 lines, -1 line 0 comments Download
M src/pkg/runtime/runtime.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 1 comment Download

Messages

Total messages: 22
dvyukov
Depends on https://codereview.appspot.com/7429048/ for xchg64 https://codereview.appspot.com/7448048/diff/2001/src/pkg/runtime/runtime.h File src/pkg/runtime/runtime.h (right): https://codereview.appspot.com/7448048/diff/2001/src/pkg/runtime/runtime.h#newcode694 src/pkg/runtime/runtime.h:694: uint64 runtime·xchg64(uint64 volatile*, uint64); ...
11 years, 1 month ago (2013-03-02 12:16:23 UTC) #1
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, 1 month ago (2013-03-02 12:22:28 UTC) #2
dvyukov
ready for review
11 years, 1 month ago (2013-03-04 21:45:28 UTC) #3
bradfitz
https://codereview.appspot.com/7448048/diff/3/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/7448048/diff/3/src/pkg/runtime/proc.c#newcode1003 src/pkg/runtime/proc.c:1003: gp = runtime·netpoll(0, 8); // non-blocking why 8?
11 years, 1 month ago (2013-03-04 21:50:30 UTC) #4
dvyukov
https://codereview.appspot.com/7448048/diff/3/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/7448048/diff/3/src/pkg/runtime/proc.c#newcode1003 src/pkg/runtime/proc.c:1003: gp = runtime·netpoll(0, 8); // non-blocking On 2013/03/04 21:50:30, ...
11 years, 1 month ago (2013-03-05 08:31:57 UTC) #5
mikio
https://codereview.appspot.com/7448048/diff/10001/src/pkg/runtime/netpoll.c File src/pkg/runtime/netpoll.c (right): https://codereview.appspot.com/7448048/diff/10001/src/pkg/runtime/netpoll.c#newcode8 src/pkg/runtime/netpoll.c:8: // returns list of goroutines that become runnable full ...
11 years, 1 month ago (2013-03-05 09:06:27 UTC) #6
dvyukov
What do you mean? On Mar 5, 2013 11:06 AM, <mikioh.mikioh@gmail.com> wrote: > > https://codereview.appspot.**com/7448048/diff/10001/src/** ...
11 years, 1 month ago (2013-03-05 11:04:19 UTC) #7
mikio
> What do you mean? I mean, please add a full stop.
11 years, 1 month ago (2013-03-05 13:20:12 UTC) #8
bradfitz
https://codereview.appspot.com/7448048/diff/3/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/7448048/diff/3/src/pkg/runtime/proc.c#newcode1003 src/pkg/runtime/proc.c:1003: gp = runtime·netpoll(0, 8); // non-blocking On 2013/03/05 08:31:57, ...
11 years, 1 month ago (2013-03-05 15:48:45 UTC) #9
dvyukov
On 2013/03/05 13:20:12, mikio wrote: > > What do you mean? > > I mean, ...
11 years, 1 month ago (2013-03-07 13:15:34 UTC) #10
dvyukov
On 2013/03/05 15:48:45, bradfitz wrote: > https://codereview.appspot.com/7448048/diff/3/src/pkg/runtime/proc.c > File src/pkg/runtime/proc.c (right): > > https://codereview.appspot.com/7448048/diff/3/src/pkg/runtime/proc.c#newcode1003 > ...
11 years, 1 month ago (2013-03-07 13:15:52 UTC) #11
dvyukov
I've also renamed netpoll.c to netpoll0.c, because it's intended for platforms that do not support ...
11 years, 1 month ago (2013-03-07 13:16:46 UTC) #12
mikio
LGTM
11 years, 1 month ago (2013-03-09 02:22:18 UTC) #13
rsc
I'll take a look over the weekend.
11 years, 1 month ago (2013-03-09 04:30:09 UTC) #14
dvyukov
On 2013/03/09 04:30:09, rsc wrote: > I'll take a look over the weekend. ping this ...
11 years, 1 month ago (2013-03-12 08:13:01 UTC) #15
rsc
LGTM https://codereview.appspot.com/7448048/diff/31001/src/pkg/runtime/netpoll0.c File src/pkg/runtime/netpoll0.c (right): https://codereview.appspot.com/7448048/diff/31001/src/pkg/runtime/netpoll0.c#newcode12 src/pkg/runtime/netpoll0.c:12: runtime·netpoll(bool block) Can you perhaps call this file ...
11 years, 1 month ago (2013-03-12 16:03:45 UTC) #16
dvyukov
On Tue, Mar 12, 2013 at 8:03 PM, <rsc@golang.org> wrote: > LGTM > > > ...
11 years, 1 month ago (2013-03-12 16:22:19 UTC) #17
rsc
On Tue, Mar 12, 2013 at 12:22 PM, Dmitry Vyukov <dvyukov@google.com> wrote: > On Tue, ...
11 years, 1 month ago (2013-03-12 16:28:00 UTC) #18
dvyukov
On 2013/03/12 16:28:00, rsc wrote: > On Tue, Mar 12, 2013 at 12:22 PM, Dmitry ...
11 years, 1 month ago (2013-03-12 17:14:12 UTC) #19
dvyukov
*** Submitted as https://code.google.com/p/go/source/detail?r=07cfd1fc9337 *** runtime: add network polling support into scheduler This is a ...
11 years, 1 month ago (2013-03-12 17:15:40 UTC) #20
atom
https://codereview.appspot.com/7448048/diff/45001/src/pkg/runtime/runtime.h File src/pkg/runtime/runtime.h (right): https://codereview.appspot.com/7448048/diff/45001/src/pkg/runtime/runtime.h#newcode972 src/pkg/runtime/runtime.h:972: UseSpanType = 0, Should be reverted to UseSpanType = ...
11 years, 1 month ago (2013-03-14 08:56:13 UTC) #21
dvyukov
11 years, 1 month ago (2013-03-14 09:48:09 UTC) #22
oops

On Thu, Mar 14, 2013 at 12:56 PM,  <0xE2.0x9A.0x9B@gmail.com> wrote:
>
> https://codereview.appspot.com/7448048/diff/45001/src/pkg/runtime/runtime.h
> File src/pkg/runtime/runtime.h (right):
>
>
https://codereview.appspot.com/7448048/diff/45001/src/pkg/runtime/runtime.h#n...
> src/pkg/runtime/runtime.h:972: UseSpanType = 0,
> Should be reverted to UseSpanType = 1.
>
> https://codereview.appspot.com/7448048/
Sign in to reply to this message.

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