mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: move zeroVal out of map.go
It isn't specific to maps, so put it in a more general location. For #54766. Change-Id: Ia3f3ebe8c347cfa5a8582082a306f4df4e05818d Reviewed-on: https://go-review.googlesource.com/c/go/+/580777 Reviewed-by: Cherry Mui <cherryyz@google.com> Auto-Submit: Michael Pratt <mpratt@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
9f9dd2bfd8
commit
1f4bcee2cd
4 changed files with 11 additions and 5 deletions
|
|
@ -1423,8 +1423,6 @@ func reflectlite_maplen(h *hmap) int {
|
|||
return h.count
|
||||
}
|
||||
|
||||
var zeroVal [abi.ZeroValSize]byte
|
||||
|
||||
// mapinitnoop is a no-op function known the Go linker; if a given global
|
||||
// map (of the right size) is determined to be dead, the linker will
|
||||
// rewrite the relocation (from the package init func) from the outlined
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue