mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
internal/abi, runtime, reflect, cmd: merge maxZero const into internal/abi
For #59670
Change-Id: If38a74ad067a3ea3ff551c0c25c8ef41abec114b
GitHub-Last-Rev: fb1f2f3c9f
GitHub-Pull-Request: golang/go#64268
Reviewed-on: https://go-review.googlesource.com/c/go/+/543655
Run-TryBot: qiulaidongfeng <2645477756@qq.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
b06f59e75c
commit
2c424edd91
6 changed files with 12 additions and 12 deletions
|
|
@ -1436,8 +1436,7 @@ func reflectlite_maplen(h *hmap) int {
|
|||
return h.count
|
||||
}
|
||||
|
||||
const maxZero = 1024 // must match value in reflect/value.go:maxZero cmd/compile/internal/gc/walk.go:zeroValSize
|
||||
var zeroVal [maxZero]byte
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue