go/acid/go
R=r
DELTA=99 (95 added, 1 deleted, 3 changed)
OCL=15983
CL=15992
diff --git a/src/runtime/proc.c b/src/runtime/proc.c
index 4fdcd4e..58c791b 100644
--- a/src/runtime/proc.c
+++ b/src/runtime/proc.c
@@ -297,7 +297,7 @@
readylocked(G *g)
{
M *m;
-
+
if(g->m){
// Running on another machine.
// Ready it when it stops.
@@ -346,7 +346,7 @@
mput(m);
if(sched.mcount == sched.mwait)
- prints("warning: all goroutines are asleep - deadlock!\n");
+ throw("all goroutines are asleep - deadlock!");
m->nextg = nil;
noteclear(&m->havenextg);
unlock(&sched);
@@ -377,7 +377,7 @@
// Jumped here via gosave/gogo, so didn't
// execute lock(&sched) above.
lock(&sched);
-
+
if(sched.predawn)
throw("init sleeping");