R=r
DELTA=99 (95 added, 1 deleted, 3 changed)
OCL=15983
CL=15992
%.$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
readylocked(G *g)
{
M *m;
-
+
if(g->m){
// Running on another machine.
// Ready it when it stops.
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);
// Jumped here via gosave/gogo, so didn't
// execute lock(&sched) above.
lock(&sched);
-
+
if(sched.predawn)
throw("init sleeping");
*/
extern Alg algarray[3];
extern string emptystring;
-M* allm;
G* allg;
int32 goidgen;
extern int32 gomaxprocs;