diff --git a/src/runtime/os_linux_arm.go b/src/runtime/os_linux_arm.go index d88bf785ee..c5abedbd98 100644 --- a/src/runtime/os_linux_arm.go +++ b/src/runtime/os_linux_arm.go @@ -64,6 +64,7 @@ func sysargs(argc int32, argv **byte) { } } +//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. 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.