aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/proc.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-09-26 14:10:26 -0700
committerRuss Cox <rsc@golang.org>2008-09-26 14:10:26 -0700
commit72154b042fc0e8399b44ad15af48f1f7aa8791ef (patch)
treed3a66f8cc3b790bdd4d3d9cd0339b83102e2a717 /src/runtime/proc.c
parent133c68e9ac911670cde197c456050aebc004d2e0 (diff)
downloadgo-72154b042fc0e8399b44ad15af48f1f7aa8791ef.tar.xz
go/acid/go
R=r DELTA=99 (95 added, 1 deleted, 3 changed) OCL=15983 CL=15992
Diffstat (limited to 'src/runtime/proc.c')
-rw-r--r--src/runtime/proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/proc.c b/src/runtime/proc.c
index 4fdcd4ec29..58c791b6e4 100644
--- a/src/runtime/proc.c
+++ b/src/runtime/proc.c
@@ -297,7 +297,7 @@ static void
readylocked(G *g)
{
M *m;
-
+
if(g->m){
// Running on another machine.
// Ready it when it stops.
@@ -346,7 +346,7 @@ nextgandunlock(void)
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 @@ scheduler(void)
// Jumped here via gosave/gogo, so didn't
// execute lock(&sched) above.
lock(&sched);
-
+
if(sched.predawn)
throw("init sleeping");