From: Russ Cox Date: Mon, 1 Jul 2013 21:57:09 +0000 (-0400) Subject: runtime: disable preemption X-Git-Tag: go1.2rc2~1131 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=08e064135dfd6ec5cd09ac07134a9817425aac06;p=gostls13.git runtime: disable preemption 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 --- diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index b93f4911d7..cddbefc0f4 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -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;