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