diff options
Diffstat (limited to 'src/runtime/stack.go')
-rw-r--r-- | src/runtime/stack.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/stack.go b/src/runtime/stack.go index 0f1a5c1c55..1e59d38994 100644 --- a/src/runtime/stack.go +++ b/src/runtime/stack.go @@ -1225,3 +1225,8 @@ func morestackc() { throw("attempt to execute C code on Go stack") }) } + +//go:nosplit +func inStack(p uintptr, s stack) bool { + return s.lo <= p && p < s.hi +} |