1
0
mirror of https://github.com/golang/go synced 2024-11-19 18:54:41 -07:00

runtime: make Gosched nosplit

Replacing gosched with Gosched broke some builds because
some of the call sites are at times when the stack cannot be grown.

TBR=khr
CC=golang-codereviews
https://golang.org/cl/142000043
This commit is contained in:
Russ Cox 2014-09-11 16:33:01 -04:00
parent 15a5c35cec
commit 91baf5c65d

View File

@ -104,6 +104,8 @@ func forcegchelper() {
} }
} }
//go:nosplit
// Gosched yields the processor, allowing other goroutines to run. It does not // Gosched yields the processor, allowing other goroutines to run. It does not
// suspend the current goroutine, so execution resumes automatically. // suspend the current goroutine, so execution resumes automatically.
func Gosched() { func Gosched() {