diff options
author | Michael Pratt <mpratt@google.com> | 2024-04-19 13:46:16 -0400 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-04-22 20:09:01 +0000 |
commit | 1f4bcee2cd064fdb5b02f36b4e96c1dc3aac48c9 (patch) | |
tree | c300713bf028bcc870a24f78dbcf7cb7b9b057b7 /src/internal/abi/map.go | |
parent | 9f9dd2bfd8a09083b21767d13df38ff67d7236d8 (diff) | |
download | go-1f4bcee2cd064fdb5b02f36b4e96c1dc3aac48c9.tar.gz go-1f4bcee2cd064fdb5b02f36b4e96c1dc3aac48c9.zip |
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>
Diffstat (limited to 'src/internal/abi/map.go')
-rw-r--r-- | src/internal/abi/map.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/internal/abi/map.go b/src/internal/abi/map.go index b475cf9943..12ad1b891a 100644 --- a/src/internal/abi/map.go +++ b/src/internal/abi/map.go @@ -17,6 +17,3 @@ const ( MapMaxKeyBytes = 128 MapMaxElemBytes = 128 // Must fit in a uint8. ) - -// ZeroValSize is the size in bytes of runtime.zeroVal. -const ZeroValSize = 1024 |