From 774333685e0407307bccbcdd8254d8244cbd73ba Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 29 Jun 2010 17:47:27 -0700 Subject: [PATCH] runtime: fix scheduling bug - world wasn't stopping Fixes #886. R=r CC=golang-dev https://golang.org/cl/1667051 --- src/pkg/runtime/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index a587a7fd43..2abb28307e 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -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; }