diff options
| author | Russ Cox <rsc@golang.org> | 2024-05-22 17:09:02 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2024-05-29 16:25:21 +0000 |
| commit | 9a8995b8b6a08d5fe01122771f962b36336f8aec (patch) | |
| tree | 0222395807dfced049e2602280a7f8614b2addbe /src/runtime/slice.go | |
| parent | a3a584e4abad776f4b8e5cab5b5923724fdf75d9 (diff) | |
| download | go-9a8995b8b6a08d5fe01122771f962b36336f8aec.tar.xz | |
all: document legacy //go:linkname for modules with ≥100 dependents
For #67401.
Change-Id: I015408a3f437c1733d97160ef2fb5da6d4efcc5c
Reviewed-on: https://go-review.googlesource.com/c/go/+/587598
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime/slice.go')
| -rw-r--r-- | src/runtime/slice.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/slice.go b/src/runtime/slice.go index b91caf0dfe..78475735af 100644 --- a/src/runtime/slice.go +++ b/src/runtime/slice.go @@ -167,6 +167,7 @@ func makeslice64(et *_type, len64, cap64 int64) unsafe.Pointer { // Notable members of the hall of shame include: // - github.com/bytedance/sonic // - github.com/chenzhuoyu/iasm +// - github.com/cloudwego/dynamicgo // - github.com/ugorji/go/codec // // Do not remove or change the type signature. @@ -319,6 +320,14 @@ func nextslicecap(newLen, oldCap int) int { return newcap } +// reflect_growslice should be an internal detail, +// but widely used packages access it using linkname. +// Notable members of the hall of shame include: +// - github.com/cloudwego/dynamicgo +// +// Do not remove or change the type signature. +// See go.dev/issue/67401. +// //go:linkname reflect_growslice reflect.growslice func reflect_growslice(et *_type, old slice, num int) slice { // Semantically equivalent to slices.Grow, except that the caller |
