Commit 72154b04 authored by Russ Cox's avatar Russ Cox

go/acid/go

R=r
DELTA=99  (95 added, 1 deleted, 3 changed)
OCL=15983
CL=15992
parent 133c68e9
......@@ -59,5 +59,5 @@ sys_file.$O: sys_file.c sys_types.h $(OS_H)
%.$O: %.s
$(AS) $<
runtime.acid: runtime.h
$(CC) -a runtime.h >runtime.acid
runtime.acid: runtime.h proc.c
$(CC) -a proc.c >runtime.acid
......@@ -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");
......
......@@ -186,7 +186,6 @@ struct SigTab
*/
extern Alg algarray[3];
extern string emptystring;
M* allm;
G* allg;
int32 goidgen;
extern int32 gomaxprocs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment