]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/internal/goobj2, cmd/link: experiment another way of accessing relocations
authorCherry Zhang <cherryyz@google.com>
Thu, 5 Mar 2020 16:29:24 +0000 (11:29 -0500)
committerCherry Zhang <cherryyz@google.com>
Fri, 13 Mar 2020 01:04:29 +0000 (01:04 +0000)
commitc951514da987b0e4ed629962ed773c6cb47d96f9
tree9e4b413b0ba3d8b81ace0333fcda4b525ace9f47
parentad92148058ee060ddbc4ff789f537d8d94f57c5d
[dev.link] cmd/internal/goobj2, cmd/link: experiment another way of accessing relocations

Use a different mechanism to access relocations from the object
files, and use it in the stack bounds check pass. This shows some
speedup.

(linking cmd/compile)
Dostkcheck     76.9ms ± 1%    55.1ms ± 1%  -28.36%  (p=0.008 n=5+5)

Change-Id: I2ac42da515dccd64719fb557ffff6cdc69e4319b
Reviewed-on: https://go-review.googlesource.com/c/go/+/222240
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/internal/goobj2/objfile.go
src/cmd/internal/goobj2/objfile_test.go [new file with mode: 0644]
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/loader/loader.go