aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sizeof_test.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2018-03-06 21:28:24 -0800
committerJosh Bleecher Snyder <josharian@gmail.com>2018-05-03 17:04:22 +0000
commit4d7cf3fedbc382215df5ff6167ee9782a9cc9375 (patch)
tree47fa97c217aab8e22fedeed15e43a5be61890b56 /src/runtime/sizeof_test.go
parent4704149e04b89a2c3f3d361facdab55b659fb527 (diff)
downloadgo-4d7cf3fedbc382215df5ff6167ee9782a9cc9375.tar.gz
go-4d7cf3fedbc382215df5ff6167ee9782a9cc9375.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. 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>
Diffstat (limited to 'src/runtime/sizeof_test.go')
-rw-r--r--src/runtime/sizeof_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/sizeof_test.go b/src/runtime/sizeof_test.go
index 738229ea4a..830055e2aa 100644
--- a/src/runtime/sizeof_test.go
+++ b/src/runtime/sizeof_test.go
@@ -23,7 +23,7 @@ func TestSizeof(t *testing.T) {
_32bit uintptr // size on 32bit platforms
_64bit uintptr // size on 64bit platforms
}{
- {runtime.G{}, 220, 384}, // g, but exported for testing
+ {runtime.G{}, 216, 376}, // g, but exported for testing
}
for _, tt := range tests {