aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/export_test.go
diff options
context:
space:
mode:
authorqiulaidongfeng <2645477756@qq.com>2024-01-31 03:51:34 +0000
committerKeith Randall <khr@golang.org>2024-02-27 20:56:00 +0000
commitfdb200834feb8bd8e5d0073d83c51f68e364d0fd (patch)
treea67da0475d5beaa44cfcd2235b40fb92e81720a9 /src/runtime/export_test.go
parent24070cf747d8b3f4487f1ca7247dcdf0ac266e8c (diff)
downloadgo-fdb200834feb8bd8e5d0073d83c51f68e364d0fd.tar.xz
runtime: use MapMaxKeyBytes,MapMaxElemBytes,MapBucketCount of internal/abi
For #59670 Change-Id: I9265e033bf3a84c3dc7b4a5d52c0df9672435f0d GitHub-Last-Rev: 8e4099095cec9e774abe9b72212a1eab6f6f9fdb GitHub-Pull-Request: golang/go#64774 Reviewed-on: https://go-review.googlesource.com/c/go/+/550117 Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Than McIntosh <thanm@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/export_test.go')
-rw-r--r--src/runtime/export_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/export_test.go b/src/runtime/export_test.go
index e25f748ed4..4588240f9e 100644
--- a/src/runtime/export_test.go
+++ b/src/runtime/export_test.go
@@ -751,7 +751,7 @@ func MapTombstoneCheck(m map[int]int) {
b0 := (*bmap)(add(h.buckets, uintptr(x)*uintptr(t.BucketSize)))
n := 0
for b := b0; b != nil; b = b.overflow(t) {
- for i := 0; i < bucketCnt; i++ {
+ for i := 0; i < abi.MapBucketCount; i++ {
if b.tophash[i] != emptyRest {
n++
}
@@ -759,7 +759,7 @@ func MapTombstoneCheck(m map[int]int) {
}
k := 0
for b := b0; b != nil; b = b.overflow(t) {
- for i := 0; i < bucketCnt; i++ {
+ for i := 0; i < abi.MapBucketCount; i++ {
if k < n && b.tophash[i] == emptyRest {
panic("early emptyRest")
}