summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/proc.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-07-17 14:03:27 -0400
committerRuss Cox <rsc@golang.org>2013-07-17 14:03:27 -0400
commitcb3560c99e58f3414bb7204af0fd77dc126bd46e (patch)
tree043d0f93db9b2bf50fe4842f51970d0797ada329 /src/pkg/runtime/proc.c
parent0ecccc491427a4f3f695c0e2307fb09d1ae07c3e (diff)
downloadgo-cb3560c99e58f3414bb7204af0fd77dc126bd46e.tar.gz
runtime: re-enable preemption
Update issue 543 I believe the runtime is strong enough now to reenable preemption during the function prologue. Assuming this is or can be made stable, it will be in Go 1.2. More aggressive preemption is not planned for Go 1.2. R=golang-dev, iant CC=golang-dev https://codereview.appspot.com/11433045
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 3ce281fc7..74e92a63f 100644
--- a/src/pkg/runtime/proc.c
+++ b/src/pkg/runtime/proc.c
@@ -2175,12 +2175,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(1) return;
-
mp = p->m;
if(mp == nil || mp == m)
return;