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/trace.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/trace.go')
-rw-r--r-- | src/runtime/trace.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/trace.go b/src/runtime/trace.go index c4090ff29a..250f19228c 100644 --- a/src/runtime/trace.go +++ b/src/runtime/trace.go @@ -392,7 +392,7 @@ func ReadTrace() []byte { // Wait for new data. if trace.fullHead == 0 && !trace.shutdown { trace.reader.set(getg()) - goparkunlock(&trace.lock, "trace reader (blocked)", traceEvGoBlock, 2) + goparkunlock(&trace.lock, waitReasonTraceReaderBlocked, traceEvGoBlock, 2) lock(&trace.lock) } // Write a buffer. |