diff options
| author | Russ Cox <rsc@golang.org> | 2024-05-21 23:04:21 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-05-22 21:17:38 +0000 |
| commit | 4c589d93ad6f77e31cccc237c20133f0d8d8492f (patch) | |
| tree | d3a0855b800d228281b0520e6c9415d3b429c9b1 /src/runtime/runtime.go | |
| parent | 2b8d9e3997df9835bc33522fab917ab701c174b6 (diff) | |
| download | go-4c589d93ad6f77e31cccc237c20133f0d8d8492f.tar.xz | |
runtime: revert "move zeroVal to internal/abi"
This reverts CL 581395, commit 2f5b420fb5984842afab37a9c2e66e6599107483.
It breaks a linkname from github.com/ugorji/go/codec.
For #67401.
A followup CL will document this dependence.
Change-Id: I66d6c39c03e769ab829ca4c3f4f61277b93380d3
Reviewed-on: https://go-review.googlesource.com/c/go/+/587216
TryBot-Bypass: Russ Cox <rsc@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/runtime/runtime.go')
| -rw-r--r-- | src/runtime/runtime.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go index f854fd5e41..6cf903d2c1 100644 --- a/src/runtime/runtime.go +++ b/src/runtime/runtime.go @@ -5,6 +5,7 @@ package runtime import ( + "internal/abi" "internal/runtime/atomic" "unsafe" ) @@ -301,3 +302,8 @@ var auxv []uintptr // //go:linkname getAuxv func getAuxv() []uintptr { return auxv } + +// zeroVal is used by reflect via linkname. +// +//go:linkname zeroVal +var zeroVal [abi.ZeroValSize]byte |
