mirror of
https://github.com/golang/go
synced 2024-11-12 03:50:21 -07:00
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 <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
244c98fe01
commit
a04adcaf35
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user