]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: make Gosched nosplit
authorRuss Cox <rsc@golang.org>
Thu, 11 Sep 2014 20:33:01 +0000 (16:33 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 11 Sep 2014 20:33:01 +0000 (16:33 -0400)
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

src/runtime/proc.go

index 27e84230a116bc7870fb8a4df3e0ab5cd93e488a..4e3d2855f60ec1842ce5528bcfc5eaae96f0a3a7 100644 (file)
@@ -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() {