]> Cypherpunks repositories - gostls13.git/commitdiff
go/acid/go
authorRuss Cox <rsc@golang.org>
Fri, 26 Sep 2008 21:10:26 +0000 (14:10 -0700)
committerRuss Cox <rsc@golang.org>
Fri, 26 Sep 2008 21:10:26 +0000 (14:10 -0700)
R=r
DELTA=99  (95 added, 1 deleted, 3 changed)
OCL=15983
CL=15992

src/runtime/Makefile
src/runtime/proc.c
src/runtime/runtime.h

index 2cdb4a97937491b85a08254f0c8363b5b27eb067..b9e57701037e3af4ebf7dbf7a5c8a2a8c78d7548 100644 (file)
@@ -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
index 4fdcd4ec29322b8d37f53f20028791a36555647c..58c791b6e42ef2b94a2e87fd697b57bff0b00c91 100644 (file)
@@ -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");
 
index 86afaaa7c21e63e11ed644ddeeae06c9ed18e45a..f590472439b5c5f8134c6433754e6e24cb52f2f2 100644 (file)
@@ -186,7 +186,6 @@ struct      SigTab
  */
 extern Alg     algarray[3];
 extern string  emptystring;
-M*     allm;
 G*     allg;
 int32  goidgen;
 extern int32   gomaxprocs;