]> Cypherpunks repositories - gostls13.git/commit
cmd/compile, etc: use name offset in method tables
authorDavid Crawshaw <crawshaw@golang.org>
Tue, 29 Mar 2016 01:51:10 +0000 (21:51 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Mon, 18 Apr 2016 09:12:41 +0000 (09:12 +0000)
commit95df0c6ab93f6a42bdc9fd45500fd4d56bfc9add
tree29fe9162ca68298b592ff154bff3637632aedbac
parent3c8d6af8e02bbf230c2bef9f181d8ea393068299
cmd/compile, etc: use name offset in method tables

Introduce and start using nameOff for two encoded names. This pair
of changes is best done together because the linker's method decoder
expects the method layouts to match.

Precursor to converting all existing name and *string fields to
nameOff.

linux/amd64:
cmd/go:  -45KB (0.5%)
jujud:  -389KB (0.6%)

linux/amd64 PIE:
cmd/go: -170KB (1.4%)
jujud:  -1.5MB (1.8%)

For #6853.

Change-Id: Ia044423f010fb987ce070b94c46a16fc78666ff6
Reviewed-on: https://go-review.googlesource.com/21396
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/gc/reflect.go
src/cmd/link/internal/ld/decodesym.go
src/cmd/link/internal/ld/symtab.go
src/reflect/export_test.go
src/reflect/type.go
src/reflect/value.go
src/runtime/iface.go
src/runtime/runtime1.go
src/runtime/type.go