diff options
author | Austin Clements <austin@google.com> | 2018-08-10 00:09:00 -0400 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2018-08-20 18:19:25 +0000 |
commit | de990545c3ce65926491c123bb2536168cd21cf3 (patch) | |
tree | e5966aff4ace34d0a613af885f22c8da394e7d56 /src/runtime/netpoll_fake.go | |
parent | 3578918b6614effaeaa581687d810b74e342e0f8 (diff) | |
download | go-git-de990545c3ce65926491c123bb2536168cd21cf3.tar.gz |
runtime: use gList in netpoll
netpoll is perhaps one of the most confusing uses of G lists currently
since it passes around many lists as bare *g values right now.
Switching to gList makes it much clearer what's an individual g and
what's a list.
Change-Id: I8d8993c4967c5bae049c7a094aad3a657928ba6c
Reviewed-on: https://go-review.googlesource.com/129397
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
Diffstat (limited to 'src/runtime/netpoll_fake.go')
-rw-r--r-- | src/runtime/netpoll_fake.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/netpoll_fake.go b/src/runtime/netpoll_fake.go index aab18dc846..5b1a63a878 100644 --- a/src/runtime/netpoll_fake.go +++ b/src/runtime/netpoll_fake.go @@ -27,6 +27,6 @@ func netpollclose(fd uintptr) int32 { func netpollarm(pd *pollDesc, mode int) { } -func netpoll(block bool) *g { - return nil +func netpoll(block bool) gList { + return gList{} } |