]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove the 'go:nosplit' directive from documentation
authorGabriel Aszalos <gabriel.aszalos@gmail.com>
Mon, 9 Oct 2017 15:31:06 +0000 (17:31 +0200)
committerIan Lance Taylor <iant@golang.org>
Mon, 9 Oct 2017 17:02:18 +0000 (17:02 +0000)
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 <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/proc.go

index cb9b1aa0cabe35439d6f337ada40b9638f7b779c..c24589fd4fc4ffbfbf513ff6095e56e5a34d0681 100644 (file)
@@ -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)
 }