aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorqiulaidongfeng <2645477756@qq.com>2024-01-06 07:12:43 +0000
committerGopher Robot <gobot@golang.org>2024-01-22 16:17:48 +0000
commit40fab294de5eb0ac7c071194a77b4ba2e5cfe5c1 (patch)
treeee5b4bff259511e06be5067fe9ba4b0eca9a712b /src/runtime
parenta557f9dcd72f29a571088f6867b2c3f206df41e1 (diff)
downloadgo-40fab294de5eb0ac7c071194a77b4ba2e5cfe5c1.tar.xz
cmd/link,runtime: merge minfunc const info internal/abi
For #59670 Change-Id: If2b05b1ba30b607b518577b0e11ba5a0b07999c5 GitHub-Last-Rev: a664aa18b5ef674dc2d05c1f7533e1974d265894 GitHub-Pull-Request: golang/go#64906 Reviewed-on: https://go-review.googlesource.com/c/go/+/553276 Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@google.com> Auto-Submit: Keith Randall <khr@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/symtab.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/runtime/symtab.go b/src/runtime/symtab.go
index edf800f519..a046ebef39 100644
--- a/src/runtime/symtab.go
+++ b/src/runtime/symtab.go
@@ -497,8 +497,7 @@ type textsect struct {
baseaddr uintptr // relocated section address
}
-const minfunc = 16 // minimum function size
-const pcbucketsize = 256 * minfunc // size of bucket in the pc->func lookup table
+const pcbucketsize = 256 * abi.MINFUNC // size of bucket in the pc->func lookup table
// findfuncbucket is an array of these structures.
// Each bucket represents 4096 bytes of the text segment.