aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-11 16:33:01 -0400
committerRuss Cox <rsc@golang.org>2014-09-11 16:33:01 -0400
commit91baf5c65d50a1fd33097d2610e32d575d054e6f (patch)
tree7f3100903790b97696726f498bebd7cfdf1b3316 /src
parent15a5c35cec35c09d276b0429b719a0f2cbb29189 (diff)
downloadgo-91baf5c65d50a1fd33097d2610e32d575d054e6f.tar.xz
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
Diffstat (limited to 'src')
-rw-r--r--src/runtime/proc.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go
index 27e84230a1..4e3d2855f6 100644
--- a/src/runtime/proc.go
+++ b/src/runtime/proc.go
@@ -104,6 +104,8 @@ func forcegchelper() {
}
}
+//go:nosplit
+
// Gosched yields the processor, allowing other goroutines to run. It does not
// suspend the current goroutine, so execution resumes automatically.
func Gosched() {