aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/os_linux_arm64.go
diff options
context:
space:
mode:
authorDave Cheney <dave@cheney.net>2015-04-15 19:11:47 +1000
committerDave Cheney <dave@cheney.net>2015-04-15 09:22:15 +0000
commite629cd0f88d86867f9fc898c6a75fb17060b83ea (patch)
tree73d03746d4243fb95bc11efeca8bc51ab517c142 /src/runtime/os_linux_arm64.go
parent9402e49450d57eb608f03980e7541602a346e5ae (diff)
downloadgo-e629cd0f88d86867f9fc898c6a75fb17060b83ea.tar.gz
go-e629cd0f88d86867f9fc898c6a75fb17060b83ea.zip
runtime: mark all runtime.cputicks implementations NOSPLIT
Fixes #10450 runtime.cputicks is called from runtime.exitsyscall and must not split the stack. cputicks is implemented in several ways and the NOSPLIT annotation was missing from a few of these. Change-Id: I5cbbb4e5888c5d298fe2fef240782d0e49f59af8 Reviewed-on: https://go-review.googlesource.com/8939 Reviewed-by: Aram Hăvărneanu <aram@mgk.ro>
Diffstat (limited to 'src/runtime/os_linux_arm64.go')
-rw-r--r--src/runtime/os_linux_arm64.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/os_linux_arm64.go b/src/runtime/os_linux_arm64.go
index c3ad871349..3f994f128b 100644
--- a/src/runtime/os_linux_arm64.go
+++ b/src/runtime/os_linux_arm64.go
@@ -11,6 +11,7 @@ const (
var randomNumber uint32
+//go:nosplit
func cputicks() int64 {
// Currently cputicks() is used in blocking profiler and to seed fastrand1().
// nanotime() is a poor approximation of CPU ticks that is enough for the profiler.