Commit 77433368 authored by Russ Cox's avatar Russ Cox

runtime: fix scheduling bug - world wasn't stopping

Fixes #886.

R=r
CC=golang-dev
https://golang.org/cl/1667051
parent 64b6a789
...@@ -168,7 +168,7 @@ gput(G *g) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment