aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/panic.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/panic.go')
-rw-r--r--src/runtime/panic.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/panic.go b/src/runtime/panic.go
index 6600410cb6..f2137c6853 100644
--- a/src/runtime/panic.go
+++ b/src/runtime/panic.go
@@ -944,6 +944,7 @@ func gopanic(e any) {
// getargp returns the location where the caller
// writes outgoing function call arguments.
+//
//go:nosplit
//go:noinline
func getargp() uintptr {
@@ -956,6 +957,7 @@ func getargp() uintptr {
//
// TODO(rsc): Once we commit to CopyStackAlways,
// this doesn't need to be nosplit.
+//
//go:nosplit
func gorecover(argp uintptr) any {
// Must be in a function running as part of a deferred call during the panic.