From a04adcaf35ab803f991b96ac4ae019cd55559e10 Mon Sep 17 00:00:00 2001 From: Gabriel Aszalos Date: Mon, 9 Oct 2017 17:31:06 +0200 Subject: [PATCH] runtime: remove the 'go:nosplit' directive from documentation The //go:nosplit directive was visible in GoDoc because the function that it preceeded (Gosched) is exported. This change moves the directive above the documentation, hiding it from the output. Change-Id: I281fd7573f11d977487809f74c9cc16b2af0dc88 Reviewed-on: https://go-review.googlesource.com/69120 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- src/runtime/proc.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime/proc.go b/src/runtime/proc.go index cb9b1aa0ca..c24589fd4f 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -249,9 +249,10 @@ func forcegchelper() { } } +//go:nosplit + // Gosched yields the processor, allowing other goroutines to run. It does not // suspend the current goroutine, so execution resumes automatically. -//go:nosplit func Gosched() { mcall(gosched_m) }