]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.link] create runtime.funcnametab
authorJeremy Faller <jeremy@golang.org>
Thu, 16 Jul 2020 20:18:49 +0000 (16:18 -0400)
committerJeremy Faller <jeremy@golang.org>
Fri, 31 Jul 2020 13:55:07 +0000 (13:55 +0000)
commit6ac9914383bc88d014cbc681dae758372e6ca823
tree1f41b4cbe03c274902ad26b6e19d33edbb5d6803
parent3067a8dc02f62c287a8ccd3fcf16bfdf4f687f5f
[dev.link] create runtime.funcnametab

Move the function names out of runtime.pclntab_old, creating
runtime.funcnametab.  There is an unfortunate artifact in this change in
that calculating the funcID still requires loading the name. Future work
will likely pull this out and put it into the object file Funcs.

ls -l cmd/compile (darwin):
  before: 18524016
  after:  18519952

The difference in size can be attributed to alignment in pclntab_old.

Change-Id: Ibcbb230d4632178f8fcd0667165f5335786381f8
Reviewed-on: https://go-review.googlesource.com/c/go/+/243223
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/internal/goobj2/objfile.go
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/pcln.go
src/cmd/link/internal/ld/symtab.go
src/cmd/link/internal/loader/loader.go
src/cmd/link/internal/loader/symbolbuilder.go
src/debug/gosym/pclntab.go
src/runtime/symtab.go