From 1f4bcee2cd064fdb5b02f36b4e96c1dc3aac48c9 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Fri, 19 Apr 2024 13:46:16 -0400 Subject: 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 Auto-Submit: Michael Pratt LUCI-TryBot-Result: Go LUCI --- src/runtime/map.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/runtime/map.go') diff --git a/src/runtime/map.go b/src/runtime/map.go index 6a9345e0b4..d97e209deb 100644 --- a/src/runtime/map.go +++ b/src/runtime/map.go @@ -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 -- cgit v1.3