runtime: move gosched to Go, to add stack frame information

LGTM=khr
R=khr
CC=golang-codereviews
https://golang.org/cl/134520044
This commit is contained in:
Russ Cox 2014-09-11 16:22:21 -04:00
parent 724fa12f91
commit 15a5c35cec
5 changed files with 3 additions and 16 deletions

View file

@ -477,7 +477,7 @@ func gogc(force int32) {
// now that gc is done, kick off finalizer thread if needed
if !concurrentSweep {
// give the queued finalizers, if any, a chance to run
gosched()
Gosched()
}
}