From 1d3d6ae725697c5b224b26cb3aa1325ac37f72d7 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 22 May 2024 00:14:42 -0400 Subject: all: document legacy //go:linkname for modules with ≥1,000 dependents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For #67401. Change-Id: If23a2c07e3dd042a3c439da7088437a330b9caa4 Reviewed-on: https://go-review.googlesource.com/c/go/+/587222 Auto-Submit: Russ Cox LUCI-TryBot-Result: Go LUCI Reviewed-by: Cherry Mui --- src/runtime/malloc.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/runtime/malloc.go') diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go index 097946df66..e2f296e7c4 100644 --- a/src/runtime/malloc.go +++ b/src/runtime/malloc.go @@ -1407,6 +1407,7 @@ func reflectlite_unsafe_New(typ *_type) unsafe.Pointer { // newarray should be an internal detail, // but widely used packages access it using linkname. // Notable members of the hall of shame include: +// - github.com/segmentio/encoding // - github.com/ugorji/go/codec // // Do not remove or change the type signature. @@ -1430,6 +1431,7 @@ func newarray(typ *_type, n int) unsafe.Pointer { // - github.com/bytedance/sonic // - github.com/goccy/json // - github.com/modern-go/reflect2 +// - github.com/segmentio/encoding // - github.com/segmentio/kafka-go // // Do not remove or change the type signature. -- cgit v1.3-5-g9baa