diff options
| author | khr@golang.org <khr@golang.org> | 2025-12-08 09:21:39 -0500 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-12-08 06:55:28 -0800 |
| commit | d4972f6295aede2ddc35bcb1da5f6351623e9e4d (patch) | |
| tree | 55b97502c788c8515a1e5607e74a6cbfbe723ba7 /src/runtime | |
| parent | 0d0d5c9a827bac4da9cf20da351791d217e84ebb (diff) | |
| download | go-d4972f6295aede2ddc35bcb1da5f6351623e9e4d.tar.xz | |
runtime: mark getfp as nosplit
When compiling with -l, we can't take a stack split here.
Fixes #76702
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>
Diffstat (limited to 'src/runtime')
| -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 15137cc13f..e7a9a13d29 100644 --- a/src/runtime/os_wasm.go +++ b/src/runtime/os_wasm.go @@ -142,6 +142,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 6d704e8200..144e3cdf91 100644 --- a/src/runtime/stubs_s390x.go +++ b/src/runtime/stubs_s390x.go @@ -17,4 +17,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 } |
