aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/proc.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-07-01 17:57:09 -0400
committerRuss Cox <rsc@golang.org>2013-07-01 17:57:09 -0400
commit08e064135dfd6ec5cd09ac07134a9817425aac06 (patch)
tree9434284e8b14d0c7456b371c46a7cbaa779616a0 /src/pkg/runtime/proc.c
parentfd23958f49f0967c9a5999ffc2e33740f246a11a (diff)
downloadgo-08e064135dfd6ec5cd09ac07134a9817425aac06.tar.xz
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
Diffstat (limited to 'src/pkg/runtime/proc.c')
-rw-r--r--src/pkg/runtime/proc.c6
1 files changed, 6 insertions, 0 deletions
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;