aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/proc.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-08-05 16:06:24 -0400
committerRuss Cox <rsc@golang.org>2013-08-05 16:06:24 -0400
commit10ebb84d4801beb9fb86e6d156229e9dad0883e3 (patch)
tree0c39b5c564d4fd3f746d81b632bd19356c74bc02 /src/pkg/runtime/proc.c
parentf38ff9e5ea24d1ea27928cfdc35c4679abe4673f (diff)
downloadgo-10ebb84d4801beb9fb86e6d156229e9dad0883e3.tar.xz
runtime: remove debugging knob to turn off preemption
It's still easy to turn off, but the builders are happy. Also document. R=golang-dev, iant, dvyukov CC=golang-dev https://golang.org/cl/12371043
Diffstat (limited to 'src/pkg/runtime/proc.c')
-rw-r--r--src/pkg/runtime/proc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c
index cff30c8ffa..b0aa428e99 100644
--- a/src/pkg/runtime/proc.c
+++ b/src/pkg/runtime/proc.c
@@ -2275,12 +2275,6 @@ 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(0) return;
-
mp = p->m;
if(mp == nil || mp == m)
return;