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

Issue 7326051: net: netpoller (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by dvyukov
Modified:
11 years, 1 month ago
Reviewers:
rsc
Visibility:
Public.

Description

runtime: net poller

Patch Set 1 #

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

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

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

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1027 lines, -22 lines) Patch
M src/pkg/net/fd_linux.go View 1 2 2 chunks +18 lines, -0 lines 1 comment Download
A src/pkg/net/fd_linux_amd64.go View 1 2 3 1 chunk +488 lines, -0 lines 2 comments Download
M src/pkg/net/fd_unix.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/net/fd_unix_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/net/http/fs_test.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/net/newpollserver_unix.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/net/sendfile_linux.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/net/sock_posix.go View 1 1 chunk +4 lines, -2 lines 0 comments Download
M src/pkg/net/sockopt_linux.go View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
M src/pkg/net/sockopt_posix.go View 1 2 chunks +12 lines, -15 lines 0 comments Download
M src/pkg/runtime/defs_linux_amd64.h View 1 4 chunks +23 lines, -1 line 0 comments Download
A src/pkg/runtime/poll_linux.c View 1 2 3 1 chunk +398 lines, -0 lines 0 comments Download
M src/pkg/runtime/sys_linux_amd64.s View 1 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 2
rsc
I don't know if you were ready for me to look at this - it ...
11 years, 1 month ago (2013-03-12 16:09:57 UTC) #1
dvyukov
11 years, 1 month ago (2013-03-12 16:44:08 UTC) #2
Sorry, I have lots of CLs. This is already deprecated (and, yes, it is a mess).

The part that removes duplication in fd_unix and fd_linux is already upstreamed.

The alive CLs are:
7448048: runtime: add network polling support into scheduler (already LGTMed)
7569043: runtime: integrated network poller for darwin (in review)
7579044: runtime: integrated network poller for linux (not yet mailed but ready
for review, missing linux/arm syscalls)





On 2013/03/12 16:09:57, rsc wrote:
> I don't know if you were ready for me to look at this - it was linked from the
> other CL. In order to get this merged into the main tree the duplication in
> fd_linux_amd64.go needs to be removed. We need to refactor things so that
> there's only one copy of the code from fd_unix.go (maybe still in fd_unix.go).
> 
> https://codereview.appspot.com/7326051/diff/10002/src/pkg/net/fd_linux.go
> File src/pkg/net/fd_linux.go (right):
> 
>
https://codereview.appspot.com/7326051/diff/10002/src/pkg/net/fd_linux.go#new...
> src/pkg/net/fd_linux.go:5: // +build 386
> Is arm going to happen too? Or is this just 386-specific?
> If the latter, make the file fd_linux_arm.go.
> 
>
https://codereview.appspot.com/7326051/diff/10002/src/pkg/net/fd_linux_amd64.go
> File src/pkg/net/fd_linux_amd64.go (right):
> 
>
https://codereview.appspot.com/7326051/diff/10002/src/pkg/net/fd_linux_amd64....
> src/pkg/net/fd_linux_amd64.go:5: // +build linux,amd64
> This is redundant with the file name.
> 
>
https://codereview.appspot.com/7326051/diff/10002/src/pkg/net/fd_linux_amd64....
> src/pkg/net/fd_linux_amd64.go:323: func (fd *netFD) Write(p []byte) (int,
error)
> {
> There's a lot of logic in this file that I'd like to not duplicate once for
> every architecture and operating system combination. Can most of it be
factored
> out into common code?
Sign in to reply to this message.

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