]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link/internal/loader: change storage mechanism for sym alignment
authorThan McIntosh <thanm@google.com>
Thu, 30 Apr 2020 20:01:03 +0000 (16:01 -0400)
committerThan McIntosh <thanm@google.com>
Fri, 1 May 2020 01:50:58 +0000 (01:50 +0000)
commit2f83d68926e07109f8a32f7b01209ebebf4512f8
tree539eb6a18dd6e2754f9786bfa7077466710884df
parentcdfff4d25a01ee1ae269d31a57c1e65ea00249b0
[dev.link] cmd/link/internal/loader: change storage mechanism for sym alignment

Switch the storage mechanism for symbol alignment away from a map and
to a slice of uint8 values per symbol, where value K indicates
alignment 2^K. Intended to help speed up alignment get/set in dodata.

Change-Id: I26416e455c808f697dd0d7f6d2582247ee5c5b40
Reviewed-on: https://go-review.googlesource.com/c/go/+/231220
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/link/internal/loader/loader.go