]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: disable preemption
authorRuss Cox <rsc@golang.org>
Mon, 1 Jul 2013 21:57:09 +0000 (17:57 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 1 Jul 2013 21:57:09 +0000 (17:57 -0400)
There are various problems, and both Dmitriy and I
will be away for the next week. Make the runtime a bit
more stable while we're gone.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/10848043

src/pkg/runtime/proc.c

index b93f4911d7b739d01ec87345211c66e3431ddbb2..cddbefc0f4e8437832cbb68ea526a68267643134 100644 (file)
@@ -2149,6 +2149,12 @@ preemptone(P *p)
        M *mp;
        G *gp;
 
+// Preemption requires more robust traceback routines.
+// For now, disable.
+// The if(1) silences a compiler warning about the rest of the
+// function being unreachable.
+if(1) return;
+
        mp = p->m;
        if(mp == nil || mp == m)
                return;