1
0
mirror of https://github.com/golang/go synced 2024-11-21 14:54:40 -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:
Russ Cox 2010-06-29 17:47:27 -07:00
parent 64b6a789a1
commit 774333685e

View File

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