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

Issue 132910043: code review 132910043: runtime: convert netpoll to Go (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by dvyukov
Modified:
10 years, 8 months ago
Reviewers:
gobot, rsc
CC:
golang-codereviews, rsc, dave_cheney.net, iant, khr
Visibility:
Public.

Description

runtime: convert netpoll to Go The common code is converted, epoll and kqueue are converted. Windows and solaris are still C.

Patch Set 1 #

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

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

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

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

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

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

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

Total comments: 4

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

Patch Set 10 : diff -r d999ebefa648465ac8e09a23763c0dda08b2a277 https://go.googlecode.com/hg/ #

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

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

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

Patch Set 14 : diff -r 401c7c5a77d0a066aac556ee77aeec43f170cea9 https://dvyukov%40google.com@code.google.com/p/go/ #

Total comments: 31

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

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

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

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

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

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

Patch Set 21 : diff -r 46b3648069191187feb99a401317f02ea45f4420 https://dvyukov%40google.com@code.google.com/p/go/ #

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

Total comments: 23

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

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

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

Total comments: 7

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

Patch Set 27 : diff -r 4350bfdd9e44a2026536ee357edebc8d9f2ab612 https://dvyukov%40google.com@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+579 lines, -595 lines) Patch
M src/cmd/api/goapi.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +3 lines, -0 lines 0 comments Download
M src/pkg/runtime/asm_386.s View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +3 lines, -0 lines 0 comments Download
M src/pkg/runtime/asm_amd64.s View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +3 lines, -0 lines 0 comments Download
M src/pkg/runtime/asm_amd64p32.s View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +10 lines, -0 lines 0 comments Download
M src/pkg/runtime/atomic_arm.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +7 lines, -0 lines 0 comments Download
M src/pkg/runtime/netpoll.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +342 lines, -375 lines 0 comments Download
M src/pkg/runtime/netpoll_epoll.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +72 lines, -78 lines 0 comments Download
M src/pkg/runtime/netpoll_kqueue.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +68 lines, -78 lines 0 comments Download
M src/pkg/runtime/netpoll_nacl.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +12 lines, -23 lines 0 comments Download
M src/pkg/runtime/os_darwin.go View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -3 lines 0 comments Download
M src/pkg/runtime/os_dragonfly.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -3 lines 0 comments Download
M src/pkg/runtime/os_freebsd.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -3 lines 0 comments Download
M src/pkg/runtime/os_linux.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -5 lines 0 comments Download
M src/pkg/runtime/os_netbsd.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -3 lines 0 comments Download
M src/pkg/runtime/os_openbsd.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -3 lines 0 comments Download
M src/pkg/runtime/os_solaris.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +4 lines, -0 lines 0 comments Download
M src/pkg/runtime/os_windows.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +4 lines, -0 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +0 lines, -4 lines 0 comments Download
M src/pkg/runtime/stubs.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +3 lines, -0 lines 0 comments Download
M src/pkg/runtime/sys_linux_386.s View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/sys_linux_amd64.s View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/sys_linux_arm.s View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -5 lines 0 comments Download
M src/pkg/runtime/thunk.s View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +27 lines, -0 lines 0 comments Download
M src/pkg/runtime/time.go View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -4 lines 0 comments Download
M src/pkg/syscall/net_nacl.go View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M src/pkg/time/internal_test.go View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/time/sleep.go View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 21
dvyukov
Hello golang-codereviews@googlegroups.com (cc: khr@golang.org, rsc@golang.org), I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
10 years, 8 months ago (2014-08-26 17:26:49 UTC) #1
rsc
i have a pending change that is going to mean no one has to edit ...
10 years, 8 months ago (2014-08-26 19:46:33 UTC) #2
dave_cheney.net
https://codereview.appspot.com/132910043/diff/140001/src/pkg/runtime/netpoll.go File src/pkg/runtime/netpoll.go (right): https://codereview.appspot.com/132910043/diff/140001/src/pkg/runtime/netpoll.go#newcode57 src/pkg/runtime/netpoll.go:57: gothrow("runtime_pollOpen: blocked write on free descriptor") runtime_netpollOpen https://codereview.appspot.com/132910043/diff/140001/src/pkg/runtime/netpoll.go#newcode60 src/pkg/runtime/netpoll.go:60: ...
10 years, 8 months ago (2014-08-27 04:57:36 UTC) #3
dvyukov
Hello golang-codereviews@googlegroups.com, rsc@golang.org, dave@cheney.net (cc: golang-codereviews@googlegroups.com, iant@golang.org, khr@golang.org, rsc@golang.org), Please take another look.
10 years, 8 months ago (2014-08-28 19:42:40 UTC) #4
dvyukov
Hello golang-codereviews@googlegroups.com, rsc@golang.org, dave@cheney.net (cc: golang-codereviews@googlegroups.com, iant@golang.org, khr@golang.org, rsc@golang.org), Please take another look.
10 years, 8 months ago (2014-08-28 19:43:17 UTC) #5
dvyukov
it all must be done PTAL On Wed, Aug 27, 2014 at 8:57 AM, <dave@cheney.net> ...
10 years, 8 months ago (2014-08-28 19:46:31 UTC) #6
rsc
PLEASE PLEASE PLEASE think about what the diffs are going to look like when you ...
10 years, 8 months ago (2014-08-29 18:18:48 UTC) #7
rsc
I take it back: I did not review netpoll.go. Please reorder things to make the ...
10 years, 8 months ago (2014-08-29 18:53:11 UTC) #8
dvyukov
I fixed diffs as much as I can, hg uploaded and checked the diffs in ...
10 years, 8 months ago (2014-08-30 12:27:39 UTC) #9
rsc
https://codereview.appspot.com/132910043/diff/260001/src/pkg/runtime/sys_linux_386.go File src/pkg/runtime/sys_linux_386.go (right): https://codereview.appspot.com/132910043/diff/260001/src/pkg/runtime/sys_linux_386.go#newcode1 src/pkg/runtime/sys_linux_386.go:1: // Copyright 2014 The Go Authors. All rights reserved. ...
10 years, 8 months ago (2014-08-30 17:40:19 UTC) #10
dvyukov
On Sat, Aug 30, 2014 at 9:40 PM, <rsc@golang.org> wrote: > > https://codereview.appspot.com/132910043/diff/260001/src/pkg/runtime/sys_linux_386.go > File ...
10 years, 8 months ago (2014-08-30 18:06:01 UTC) #11
rsc
On Sat, Aug 30, 2014 at 2:05 PM, Dmitry Vyukov <dvyukov@google.com> wrote: > These structs ...
10 years, 8 months ago (2014-08-30 18:09:38 UTC) #12
dvyukov
On 2014/08/30 18:09:38, rsc wrote: > On Sat, Aug 30, 2014 at 2:05 PM, Dmitry ...
10 years, 8 months ago (2014-08-30 18:48:46 UTC) #13
rsc
https://codereview.appspot.com/132910043/diff/420001/src/pkg/runtime/netpoll.go File src/pkg/runtime/netpoll.go (right): https://codereview.appspot.com/132910043/diff/420001/src/pkg/runtime/netpoll.go#newcode31 src/pkg/runtime/netpoll.go:31: func pdReady() *g { Don't do this. If the ...
10 years, 8 months ago (2014-09-02 03:46:07 UTC) #14
dvyukov
Hello golang-codereviews@googlegroups.com, rsc@golang.org, dave@cheney.net (cc: golang-codereviews@googlegroups.com, iant@golang.org, khr@golang.org, rsc@golang.org), Please take another look.
10 years, 8 months ago (2014-09-02 06:55:35 UTC) #15
dvyukov
https://codereview.appspot.com/132910043/diff/420001/src/pkg/runtime/netpoll.go File src/pkg/runtime/netpoll.go (right): https://codereview.appspot.com/132910043/diff/420001/src/pkg/runtime/netpoll.go#newcode31 src/pkg/runtime/netpoll.go:31: func pdReady() *g { On 2014/09/02 03:46:06, rsc wrote: ...
10 years, 8 months ago (2014-09-02 06:56:06 UTC) #16
rsc
LGTM once memmove is gone https://codereview.appspot.com/132910043/diff/420001/src/pkg/runtime/netpoll.go File src/pkg/runtime/netpoll.go (right): https://codereview.appspot.com/132910043/diff/420001/src/pkg/runtime/netpoll.go#newcode31 src/pkg/runtime/netpoll.go:31: func pdReady() *g { ...
10 years, 8 months ago (2014-09-03 17:01:47 UTC) #17
dvyukov
https://codereview.appspot.com/132910043/diff/420001/src/pkg/runtime/netpoll_epoll.go File src/pkg/runtime/netpoll_epoll.go (right): https://codereview.appspot.com/132910043/diff/420001/src/pkg/runtime/netpoll_epoll.go#newcode43 src/pkg/runtime/netpoll_epoll.go:43: memmove(unsafe.Pointer(&ev.data), unsafe.Pointer(&pd), unsafe.Sizeof(pd)) On 2014/09/03 17:01:46, rsc wrote: > ...
10 years, 8 months ago (2014-09-04 06:02:44 UTC) #18
dvyukov
*** Submitted as https://code.google.com/p/go/source/detail?r=ae8c0a71a2e6 *** runtime: convert netpoll to Go The common code is converted, ...
10 years, 8 months ago (2014-09-04 06:04:13 UTC) #19
gobot
This CL appears to have broken the android-arm-crawshaw builder. See http://build.golang.org/log/7e2ab96e76b8eb0cff1eb7c778a0089b4d3d69c3
10 years, 8 months ago (2014-09-04 06:06:42 UTC) #20
rsc
10 years, 8 months ago (2014-09-04 06:14:13 UTC) #21
arm build failure is real; please fix. (GOOS=linux GOARCH=arm make.bash
will reproduce it on a non-arm system.)
Sign in to reply to this message.

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