mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: convert Gosched to Go
LGTM=rlh, khr R=golang-codereviews, rlh, bradfitz, khr CC=golang-codereviews, rsc https://golang.org/cl/127490043
This commit is contained in:
parent
53056c37c2
commit
5d40742728
6 changed files with 19 additions and 17 deletions
|
|
@ -903,7 +903,7 @@ runtime·newstack(void)
|
|||
}
|
||||
// Act like goroutine called runtime.Gosched.
|
||||
gp->status = oldstatus;
|
||||
runtime·gosched0(gp); // never return
|
||||
runtime·gosched_m(gp); // never return
|
||||
}
|
||||
|
||||
// If every frame on the top segment is copyable, allocate a bigger segment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue