From: Gabriel Aszalos Date: Mon, 9 Oct 2017 15:31:06 +0000 (+0200) Subject: runtime: remove the 'go:nosplit' directive from documentation X-Git-Tag: go1.10beta1~820 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a04adcaf35ab803f991b96ac4ae019cd55559e10;p=gostls13.git 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 --- 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) }