summaryrefslogtreecommitdiff
path: root/src/runtime/proc.go
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
commit601b6c23d323ab059b6ea9d0a82d8e379ce8099e (patch)
treea99967f3a60f76a4caddb871c42a3ff450f3e2a0 /src/runtime/proc.go
parent42444c720cfafaab831d678bfffd88d801cfb80e (diff)
downloadgo-601b6c23d323ab059b6ea9d0a82d8e379ce8099e.tar.gz
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://codereview.appspot.com/142000043
Diffstat (limited to 'src/runtime/proc.go')
-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 27e84230a..4e3d2855f 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() {