diff options
author | David Crawshaw <crawshaw@golang.org> | 2016-06-14 10:20:11 -0400 |
---|---|---|
committer | David Crawshaw <crawshaw@golang.org> | 2016-06-14 15:32:34 +0000 |
commit | af0fc83985860776551d15be3a8fefde35514bcb (patch) | |
tree | 8d3448bd28b0cc6deaf8ef74b3e36199be609d2e /src/runtime/type.go | |
parent | 53242e49b127ede6d7b258c7e90c39a5afa70c25 (diff) | |
download | go-af0fc83985860776551d15be3a8fefde35514bcb.tar.gz go-af0fc83985860776551d15be3a8fefde35514bcb.zip |
cmd/compile, etc: handle many struct fields
This adds 8 bytes of binary size to every type that has methods. It is
the smallest change I could come up with for 1.7.
Fixes #16037
Change-Id: Ibe15c3165854a21768596967757864b880dbfeed
Reviewed-on: https://go-review.googlesource.com/24070
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/type.go')
-rw-r--r-- | src/runtime/type.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/runtime/type.go b/src/runtime/type.go index d7ec5573a9..786f2b96f6 100644 --- a/src/runtime/type.go +++ b/src/runtime/type.go @@ -323,7 +323,9 @@ type method struct { type uncommontype struct { pkgpath nameOff mcount uint16 // number of methods - moff uint16 // offset from this uncommontype to [mcount]method + _ uint16 // unused + moff uint32 // offset from this uncommontype to [mcount]method + _ uint32 // unused } type imethod struct { |