mirror of
https://github.com/golang/go
synced 2024-11-21 19:54:41 -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;
|
||||
|
||||
// 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);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user