]> 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>
Thu, 3 May 2018 17:04:22 +0000 (17:04 +0000)
commit4d7cf3fedbc382215df5ff6167ee9782a9cc9375
tree47fa97c217aab8e22fedeed15e43a5be61890b56
parent4704149e04b89a2c3f3d361facdab55b659fb527
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.

This is a re-roll of CL 99078, which was rolled
back because of failures on s390x.
Those failures were apparently due to an old version of gdb.

Change-Id: Icc2c12f449b2934063fd61e272e06237625ed589
Reviewed-on: https://go-review.googlesource.com/111256
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Munday <mike.munday@ibm.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