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:
Dmitriy Vyukov 2014-08-19 11:49:59 +04:00
parent 53056c37c2
commit 5d40742728
6 changed files with 19 additions and 17 deletions

View file

@ -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