aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/map.go2
-rw-r--r--src/runtime/runtime.go3
2 files changed, 3 insertions, 2 deletions
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
diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go
index cc6f03d2a0..6ec0369a7e 100644
--- a/src/runtime/runtime.go
+++ b/src/runtime/runtime.go
@@ -5,6 +5,7 @@
package runtime
import (
+ "internal/abi"
"internal/runtime/atomic"
"unsafe"
)
@@ -296,3 +297,5 @@ func setCrashFD(fd uintptr) uintptr {
var auxv []uintptr
func getAuxv() []uintptr { return auxv } // accessed from x/sys/cpu; see issue 57336
+
+var zeroVal [abi.ZeroValSize]byte