diff options
| author | Russ Cox <rsc@golang.org> | 2024-11-05 13:50:00 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2024-11-11 20:08:38 +0000 |
| commit | 6051da46d01e967b55d088530fcbe84e8deb0e7a (patch) | |
| tree | 3a41e4cea88766e4f9ef9d646585e63affb01d6b /src/cmd/vendor/github.com/google/pprof/internal/plugin/plugin.go | |
| parent | 5a9aeef9d54321702253257eb983d7a0cc1d97bf (diff) | |
| download | go-6051da46d01e967b55d088530fcbe84e8deb0e7a.tar.xz | |
crypto/internal/fips: avoid some non-relocatable global initializers
In normal code,
var x = []int{...}
will be laid out by the linker, but in FIPS packages, the slice
assignment has to be deferred to init time to avoid a global
data relocation. We can avoid the init time work by writing
var x = [...]int{...}
instead. Do that.
For #69536.
Change-Id: Ie3c1d25af3f79182ee254014e49d3711038aa327
Reviewed-on: https://go-review.googlesource.com/c/go/+/625815
Reviewed-by: Filippo Valsorda <filippo@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/cmd/vendor/github.com/google/pprof/internal/plugin/plugin.go')
0 files changed, 0 insertions, 0 deletions
