diff options
| author | khr@golang.org <khr@golang.org> | 2025-12-08 09:21:39 -0500 |
|---|---|---|
| committer | Cherry Mui <cherryyz@google.com> | 2025-12-29 17:52:19 -0800 |
| commit | 6cdf9962bd4422f760c141c5ae66522d9837e353 (patch) | |
| tree | 7a401feb9917161e914ca4022e2f5e1b0ffdcb05 | |
| parent | 2ca51cba03ab27427b143ac24dae03c720017835 (diff) | |
| download | go-6cdf9962bd4422f760c141c5ae66522d9837e353.tar.xz | |
[release-branch.go1.24] runtime: mark getfp as nosplit
When compiling with -l, we can't take a stack split here.
Fixes #76760
Change-Id: Ieab1225c6259c7f16bb5188aa84bff615d9db2e5
Reviewed-on: https://go-review.googlesource.com/c/go/+/728060
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@google.com>
(cherry picked from commit d4972f6295aede2ddc35bcb1da5f6351623e9e4d)
Reviewed-on: https://go-review.googlesource.com/c/go/+/728580
| -rw-r--r-- | src/runtime/os_wasm.go | 2 | ||||
| -rw-r--r-- | src/runtime/stubs_386.go | 2 | ||||
| -rw-r--r-- | src/runtime/stubs_arm.go | 2 | ||||
| -rw-r--r-- | src/runtime/stubs_loong64.go | 2 | ||||
| -rw-r--r-- | src/runtime/stubs_mips64x.go | 2 | ||||
| -rw-r--r-- | src/runtime/stubs_mipsx.go | 2 | ||||
| -rw-r--r-- | src/runtime/stubs_ppc64x.go | 2 | ||||
| -rw-r--r-- | src/runtime/stubs_riscv64.go | 2 | ||||
| -rw-r--r-- | src/runtime/stubs_s390x.go | 2 |
9 files changed, 18 insertions, 0 deletions
diff --git a/src/runtime/os_wasm.go b/src/runtime/os_wasm.go index 8046caf45e..0daa5375ed 100644 --- a/src/runtime/os_wasm.go +++ b/src/runtime/os_wasm.go @@ -138,6 +138,8 @@ func preemptM(mp *m) { // getfp returns the frame pointer register of its caller or 0 if not implemented. // TODO: Make this a compiler intrinsic +// +//go:nosplit func getfp() uintptr { return 0 } func setProcessCPUProfiler(hz int32) {} diff --git a/src/runtime/stubs_386.go b/src/runtime/stubs_386.go index a1dd023974..7db27cce87 100644 --- a/src/runtime/stubs_386.go +++ b/src/runtime/stubs_386.go @@ -21,4 +21,6 @@ func asmcgocall_no_g(fn, arg unsafe.Pointer) // getfp returns the frame pointer register of its caller or 0 if not implemented. // TODO: Make this a compiler intrinsic +// +//go:nosplit func getfp() uintptr { return 0 } diff --git a/src/runtime/stubs_arm.go b/src/runtime/stubs_arm.go index e19f1a87b2..49bfd9ef04 100644 --- a/src/runtime/stubs_arm.go +++ b/src/runtime/stubs_arm.go @@ -26,4 +26,6 @@ func asmcgocall_no_g(fn, arg unsafe.Pointer) // getfp returns the frame pointer register of its caller or 0 if not implemented. // TODO: Make this a compiler intrinsic +// +//go:nosplit func getfp() uintptr { return 0 } diff --git a/src/runtime/stubs_loong64.go b/src/runtime/stubs_loong64.go index 4576089b0b..88d5985db0 100644 --- a/src/runtime/stubs_loong64.go +++ b/src/runtime/stubs_loong64.go @@ -19,4 +19,6 @@ func unspillArgs() // getfp returns the frame pointer register of its caller or 0 if not implemented. // TODO: Make this a compiler intrinsic +// +//go:nosplit func getfp() uintptr { return 0 } diff --git a/src/runtime/stubs_mips64x.go b/src/runtime/stubs_mips64x.go index f0cf088620..fb5220b0de 100644 --- a/src/runtime/stubs_mips64x.go +++ b/src/runtime/stubs_mips64x.go @@ -17,4 +17,6 @@ func asmcgocall_no_g(fn, arg unsafe.Pointer) // getfp returns the frame pointer register of its caller or 0 if not implemented. // TODO: Make this a compiler intrinsic +// +//go:nosplit func getfp() uintptr { return 0 } diff --git a/src/runtime/stubs_mipsx.go b/src/runtime/stubs_mipsx.go index 84ba147b85..175d4f9741 100644 --- a/src/runtime/stubs_mipsx.go +++ b/src/runtime/stubs_mipsx.go @@ -12,4 +12,6 @@ func save_g() // getfp returns the frame pointer register of its caller or 0 if not implemented. // TODO: Make this a compiler intrinsic +// +//go:nosplit func getfp() uintptr { return 0 } diff --git a/src/runtime/stubs_ppc64x.go b/src/runtime/stubs_ppc64x.go index 36b01a72b1..dbc82c8453 100644 --- a/src/runtime/stubs_ppc64x.go +++ b/src/runtime/stubs_ppc64x.go @@ -23,4 +23,6 @@ func unspillArgs() // getfp returns the frame pointer register of its caller or 0 if not implemented. // TODO: Make this a compiler intrinsic +// +//go:nosplit func getfp() uintptr { return 0 } diff --git a/src/runtime/stubs_riscv64.go b/src/runtime/stubs_riscv64.go index 61a6e33bd4..2306ba878b 100644 --- a/src/runtime/stubs_riscv64.go +++ b/src/runtime/stubs_riscv64.go @@ -22,4 +22,6 @@ func unspillArgs() // getfp returns the frame pointer register of its caller or 0 if not implemented. // TODO: Make this a compiler intrinsic +// +//go:nosplit func getfp() uintptr { return 0 } diff --git a/src/runtime/stubs_s390x.go b/src/runtime/stubs_s390x.go index a2b07ff8aa..90d9bcb7ce 100644 --- a/src/runtime/stubs_s390x.go +++ b/src/runtime/stubs_s390x.go @@ -10,4 +10,6 @@ func save_g() // getfp returns the frame pointer register of its caller or 0 if not implemented. // TODO: Make this a compiler intrinsic +// +//go:nosplit func getfp() uintptr { return 0 } |
