diff options
| author | Keith Randall <khr@golang.org> | 2015-01-06 20:38:44 -0800 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2015-01-07 16:05:16 +0000 |
| commit | 1dd0163ce3993192171149c9ee7e4cd538b36b8a (patch) | |
| tree | 61a5b0c6cf66c6668ea61e125d80f817380a726b /src/runtime/type.go | |
| parent | ce5cb037d171273f1a5294723234be5495c9d336 (diff) | |
| download | go-1dd0163ce3993192171149c9ee7e4cd538b36b8a.tar.xz | |
runtime: remove trailing empty arrays in structs
The ones at the end of M and G are just used to compute
their size for use in assembly. Generate the size explicitly.
The one at the end of itab is variable-sized, and at least one.
The ones at the end of interfacetype and uncommontype are not
needed, as the preceding slice references them (the slice was
originally added for use by reflect?).
The one at the end of stackmap is already accessed correctly,
and the runtime never allocates one.
Update #9401
Change-Id: Ia75e3aaee38425f038c506868a17105bd64c712f
Reviewed-on: https://go-review.googlesource.com/2420
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime/type.go')
| -rw-r--r-- | src/runtime/type.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/runtime/type.go b/src/runtime/type.go index 943d7bfd0e..d092f248a1 100644 --- a/src/runtime/type.go +++ b/src/runtime/type.go @@ -47,7 +47,6 @@ type uncommontype struct { name *string pkgpath *string mhdr []method - m [0]method } type imethod struct { @@ -59,7 +58,6 @@ type imethod struct { type interfacetype struct { typ _type mhdr []imethod - m [0]imethod } type maptype struct { |
