diff options
| author | Russ Cox <rsc@golang.org> | 2013-08-05 16:06:24 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2013-08-05 16:06:24 -0400 |
| commit | 10ebb84d4801beb9fb86e6d156229e9dad0883e3 (patch) | |
| tree | 0c39b5c564d4fd3f746d81b632bd19356c74bc02 /src/pkg/runtime/proc.c | |
| parent | f38ff9e5ea24d1ea27928cfdc35c4679abe4673f (diff) | |
| download | go-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.c | 6 |
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; |
