From 05cbbf985fed823a174bf95cc78a7d44f948fdab Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 22 May 2024 15:03:13 -0400 Subject: all: document legacy //go:linkname for modules with ≥500 dependents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For #67401. Change-Id: I7dd28c3b01a1a647f84929d15412aa43ab0089ee Reviewed-on: https://go-review.googlesource.com/c/go/+/587575 Reviewed-by: Cherry Mui Auto-Submit: Russ Cox LUCI-TryBot-Result: Go LUCI --- src/runtime/malloc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/runtime/malloc.go') diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go index e2f296e7c4..75f25a94e4 100644 --- a/src/runtime/malloc.go +++ b/src/runtime/malloc.go @@ -969,9 +969,11 @@ 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/gopkg // - github.com/bytedance/sonic -// - github.com/ugorji/go/codec +// - github.com/cockroachdb/cockroach // - github.com/cockroachdb/pebble +// - github.com/ugorji/go/codec // // Do not remove or change the type signature. // See go.dev/issue/67401. -- cgit v1.3-5-g9baa