]> Cypherpunks repositories - gostls13.git/commit
runtime: convert g.waitreason from string to uint8
authorJosh Bleecher Snyder <josharian@gmail.com>
Wed, 7 Mar 2018 05:28:24 +0000 (21:28 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 12 Mar 2018 21:56:50 +0000 (21:56 +0000)
commit4eea887fd477368653f6fcf8ad766030167936e5
treedee030c606077310b3a6abbace192ad2c9bed332
parent025134b0d1b5e5ea2c5216fe4ccb060ab1bea59a
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>
15 files changed:
src/runtime/chan.go
src/runtime/heapdump.go
src/runtime/mfinal.go
src/runtime/mgc.go
src/runtime/mgcmark.go
src/runtime/mgcsweep.go
src/runtime/netpoll.go
src/runtime/proc.go
src/runtime/runtime2.go
src/runtime/select.go
src/runtime/sema.go
src/runtime/sizeof_test.go
src/runtime/time.go
src/runtime/trace.go
src/runtime/traceback.go