mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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:
parent
15a5c35cec
commit
91baf5c65d
1 changed files with 2 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue