]> Cypherpunks repositories - gostls13.git/commit
cmd/link: use side table instead of sym.Symbol 'Reachparent' field
authorThan McIntosh <thanm@google.com>
Thu, 28 Jun 2018 19:42:20 +0000 (15:42 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 3 Jul 2018 14:48:30 +0000 (14:48 +0000)
commit32bc0976f9c4333e4a9247d6acc908972c6c5d79
treeae9c4051ff499f20d16d4d6bff6fcf73f51c9218
parent0e0cd70ecf6b5f0d9c8271f68b8fcc9f85cd6598
cmd/link: use side table instead of sym.Symbol 'Reachparent' field

The sym.Symbol 'Reachparent' field is used only when field tracking
is enabled. So as to use less memory for the common case where
field tracking is not enabled, remove this field and use a side
table stored in the context to achieve the same functionality.

Updates #26186

Change-Id: Idc5f8b0aa323689d4d51dddb5d1b0341a37bb7d2
Reviewed-on: https://go-review.googlesource.com/121915
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/deadcode.go
src/cmd/link/internal/ld/go.go
src/cmd/link/internal/ld/link.go
src/cmd/link/internal/ld/main.go
src/cmd/link/internal/sym/symbol.go