From 40fab294de5eb0ac7c071194a77b4ba2e5cfe5c1 Mon Sep 17 00:00:00 2001 From: qiulaidongfeng <2645477756@qq.com> Date: Sat, 6 Jan 2024 07:12:43 +0000 Subject: 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 Reviewed-by: Keith Randall Auto-Submit: Keith Randall Reviewed-by: Cherry Mui TryBot-Result: Gopher Robot --- src/runtime/symtab.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/runtime/symtab.go') 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. -- cgit v1.3