go/src/debug/gosym
Jeremy Faller 26407b2212 [dev.link] cmd/{compile,link}: remove pcdata tables from pclntab_old
Move the pctables out of pclntab_old. Creates a new generator symbol,
runtime.pctab, which holds all the deduplicated pctables. Also, tightens
up some of the types in runtime.

Darwin, cmd/compile statistics:

alloc/op
Pclntab_GC                   26.4MB ± 0%    13.8MB ± 0%
allocs/op
Pclntab_GC                    89.9k ± 0%     86.4k ± 0%
liveB
Pclntab_GC                    25.5M ± 0%     24.2M ± 0%

No significant change in binary size.

Change-Id: I1560fd4421f8a210f8d4b508fbc54e1780e338f9
Reviewed-on: https://go-review.googlesource.com/c/go/+/248332
Run-TryBot: Jeremy Faller <jeremy@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
2020-08-18 14:03:43 +00:00
..
testdata [dev.link] cmd/link: add runtime.pcheader 2020-07-30 19:36:06 +00:00
pclntab.go [dev.link] cmd/{compile,link}: remove pcdata tables from pclntab_old 2020-08-18 14:03:43 +00:00
pclntab_test.go [dev.link] cmd/link: add runtime.pcheader 2020-07-30 19:36:06 +00:00
symtab.go debug/gosym: correct comments for Table.{Files,Objs} 2020-04-30 03:07:49 +00:00
symtab_test.go debug/gosym: simplify parsing symbol name rule 2019-03-09 00:24:42 +00:00