diff options
| author | qiulaidongfeng <2645477756@qq.com> | 2024-02-16 00:15:29 +0000 |
|---|---|---|
| committer | Cherry Mui <cherryyz@google.com> | 2024-02-16 14:25:22 +0000 |
| commit | 284e553035137fc339617f01dd53766977cd3e8c (patch) | |
| tree | 41fc028fa51699469c98a063a00ff65fd7b13d97 /src/cmd | |
| parent | daa58db486c3806b6767a8d87ee275ed4d7c2713 (diff) | |
| download | go-284e553035137fc339617f01dd53766977cd3e8c.tar.xz | |
runtime,cmd/link: merge pcbucketsize const into internal/abi
For #59670
Change-Id: I6343bacd3126fe6381a2e73be10f61691792824d
GitHub-Last-Rev: bbab8d1142e5749f58c17f6f668e2eb679ff69d7
GitHub-Pull-Request: golang/go#65373
Reviewed-on: https://go-review.googlesource.com/c/go/+/559475
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/cmd')
| -rw-r--r-- | src/cmd/link/internal/ld/pcln.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cmd/link/internal/ld/pcln.go b/src/cmd/link/internal/ld/pcln.go index 170ebe5ebe..df06084352 100644 --- a/src/cmd/link/internal/ld/pcln.go +++ b/src/cmd/link/internal/ld/pcln.go @@ -827,9 +827,8 @@ func expandGoroot(s string) string { } const ( - BUCKETSIZE = 256 * abi.MINFUNC SUBBUCKETS = 16 - SUBBUCKETSIZE = BUCKETSIZE / SUBBUCKETS + SUBBUCKETSIZE = abi.FuncTabBucketSize / SUBBUCKETS NOIDX = 0x7fffffff ) @@ -847,7 +846,7 @@ func (ctxt *Link) findfunctab(state *pclntab, container loader.Bitmap) { // that map to that subbucket. n := int32((max - min + SUBBUCKETSIZE - 1) / SUBBUCKETSIZE) - nbuckets := int32((max - min + BUCKETSIZE - 1) / BUCKETSIZE) + nbuckets := int32((max - min + abi.FuncTabBucketSize - 1) / abi.FuncTabBucketSize) size := 4*int64(nbuckets) + int64(n) |
