]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: mark getfp as nosplit
authorkhr@golang.org <khr@golang.org>
Mon, 8 Dec 2025 14:21:39 +0000 (09:21 -0500)
committerGopher Robot <gobot@golang.org>
Mon, 8 Dec 2025 14:55:28 +0000 (06:55 -0800)
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>
src/runtime/os_wasm.go
src/runtime/stubs_386.go
src/runtime/stubs_arm.go
src/runtime/stubs_loong64.go
src/runtime/stubs_mips64x.go
src/runtime/stubs_mipsx.go
src/runtime/stubs_ppc64x.go
src/runtime/stubs_riscv64.go
src/runtime/stubs_s390x.go

index 15137cc13f3329c31e674fcc86cc386fb04768ca..e7a9a13d29e5e3539f6b76ce9df87f7edab4419a 100644 (file)
@@ -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) {}
index a1dd023974a0c6fc41159a759ead4b5ed8ab84c6..7db27cce87b69752150a6cc6072e588fe5a94765 100644 (file)
@@ -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 }
index e19f1a87b2526a817e78661bd18e22a8e838df34..49bfd9ef0441a3a56532309115679842188f9cf2 100644 (file)
@@ -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 }
index 4576089b0b38a658856f6ba9dfd2d166e7cd818b..88d5985db0ac1e537f078c3a01de35dfea1ad97b 100644 (file)
@@ -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 }
index f0cf0886203d139e9809d4f61899832728437d2f..fb5220b0de1359d377712e2bcb18230f61c88280 100644 (file)
@@ -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 }
index 84ba147b85c58cca662c68de5a2b9e3f1996699a..175d4f974184c5110518b49c491c130828cd0a0d 100644 (file)
@@ -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 }
index 36b01a72b15197975c13f939d2eecea7d13c46f6..dbc82c845352e98588f9cdb73d198b259adc4036 100644 (file)
@@ -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 }
index 61a6e33bd47a87875b9e29db8076bce678078a94..2306ba878b025303de7ef4753cb6c5f56f61b6eb 100644 (file)
@@ -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 }
index 6d704e820037a53e76172e3cf7d1af595d5a1c2b..144e3cdf919d87ef70323960006d9f91e8c877cf 100644 (file)
@@ -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 }