mirror of
https://github.com/golang/go
synced 2024-11-22 01:24:42 -07:00
runtime: fix scheduling bug - world wasn't stopping
Fixes #886. R=r CC=golang-dev https://golang.org/cl/1667051
This commit is contained in:
parent
64b6a789a1
commit
774333685e
@ -168,7 +168,7 @@ gput(G *g)
|
|||||||
M *m;
|
M *m;
|
||||||
|
|
||||||
// If g is wired, hand it off directly.
|
// If g is wired, hand it off directly.
|
||||||
if((m = g->lockedm) != nil) {
|
if(sched.mcpu < sched.mcpumax && (m = g->lockedm) != nil) {
|
||||||
mnextg(m, g);
|
mnextg(m, g);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user