From bde905af5b11e3e34bc1f5d4846d7767f7197236 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 21 May 2024 23:24:47 -0400 Subject: all: document legacy //go:linkname for modules with ≥20,000 dependents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For #67401. Change-Id: Icc10ede72547d8020c0ba45e89d954822a4b2455 Reviewed-on: https://go-review.googlesource.com/c/go/+/587218 Auto-Submit: Russ Cox Reviewed-by: Cherry Mui LUCI-TryBot-Result: Go LUCI --- 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 0e43b7acf4..5820ac8594 100644 --- a/src/runtime/malloc.go +++ b/src/runtime/malloc.go @@ -969,6 +969,7 @@ func (c *mcache) nextFree(spc spanClass) (v gclinkptr, s *mspan, shouldhelpgc bo // mallocgc should be an internal detail, // but widely used packages access it using linkname. // Notable members of the hall of shame include: +// - github.com/bytedance/sonic // - github.com/ugorji/go/codec // // Do not remove or change the type signature. @@ -1425,6 +1426,7 @@ func newarray(typ *_type, n int) unsafe.Pointer { // reflect_unsafe_NewArray is meant for package reflect, // but widely used packages access it using linkname. // Notable members of the hall of shame include: +// - github.com/bytedance/sonic // - github.com/goccy/json // - github.com/modern-go/reflect2 // -- cgit v1.3-5-g9baa