diff options
| author | Russ Cox <rsc@golang.org> | 2024-05-21 23:24:47 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-05-23 00:18:55 +0000 |
| commit | bde905af5b11e3e34bc1f5d4846d7767f7197236 (patch) | |
| tree | 8def6eab2e681e1b463e8327279bc8f833b5f10f /src/runtime/panic.go | |
| parent | 2f07d4455636ece45ff843fe4d9298ea65f933c1 (diff) | |
| download | go-bde905af5b11e3e34bc1f5d4846d7767f7197236.tar.xz | |
all: document legacy //go:linkname for modules with ≥20,000 dependents
For #67401.
Change-Id: Icc10ede72547d8020c0ba45e89d954822a4b2455
Reviewed-on: https://go-review.googlesource.com/c/go/+/587218
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/panic.go')
| -rw-r--r-- | src/runtime/panic.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/panic.go b/src/runtime/panic.go index e68d857c6d..145b1a45b1 100644 --- a/src/runtime/panic.go +++ b/src/runtime/panic.go @@ -1034,6 +1034,15 @@ func sync_fatal(s string) { // NOTE: temporarily marked "go:noinline" pending investigation/fix of // issue #67274, so as to fix longtest builders. // +// throw 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 +// +// Do not remove or change the type signature. +// See go.dev/issue/67401. +// +//go:linkname throw //go:nosplit func throw(s string) { // Everything throw does should be recursively nosplit so it |
