diff options
author | Josh Bleecher Snyder <josharian@gmail.com> | 2018-03-06 21:28:24 -0800 |
---|---|---|
committer | Josh Bleecher Snyder <josharian@gmail.com> | 2018-03-12 21:56:50 +0000 |
commit | 4eea887fd477368653f6fcf8ad766030167936e5 (patch) | |
tree | dee030c606077310b3a6abbace192ad2c9bed332 /src/runtime/netpoll.go | |
parent | 025134b0d1b5e5ea2c5216fe4ccb060ab1bea59a (diff) | |
download | go-4eea887fd477368653f6fcf8ad766030167936e5.tar.gz go-4eea887fd477368653f6fcf8ad766030167936e5.zip |
runtime: convert g.waitreason from string to uint8
Every time I poke at #14921, the g.waitreason string
pointer writes show up.
They're not particularly important performance-wise,
but it'd be nice to clear the noise away.
And it does open up a few extra bytes in the g struct
for some future use.
Change-Id: I7ffbd52fbc2a286931a2218038fda52ed6473cc9
Reviewed-on: https://go-review.googlesource.com/99078
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/netpoll.go')
-rw-r--r-- | src/runtime/netpoll.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/netpoll.go b/src/runtime/netpoll.go index 8dd4fb6319..efcd2b855c 100644 --- a/src/runtime/netpoll.go +++ b/src/runtime/netpoll.go @@ -363,7 +363,7 @@ func netpollblock(pd *pollDesc, mode int32, waitio bool) bool { // this is necessary because runtime_pollUnblock/runtime_pollSetDeadline/deadlineimpl // do the opposite: store to closing/rd/wd, membarrier, load of rg/wg if waitio || netpollcheckerr(pd, mode) == 0 { - gopark(netpollblockcommit, unsafe.Pointer(gpp), "IO wait", traceEvGoBlockNet, 5) + gopark(netpollblockcommit, unsafe.Pointer(gpp), waitReasonIOWait, traceEvGoBlockNet, 5) } // be careful to not lose concurrent READY notification old := atomic.Xchguintptr(gpp, 0) |