Skip to content

Commit b913cf8

Browse files
committed
runtime: re-enable preemption
Update #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://golang.org/cl/11433045
1 parent 5887f14 commit b913cf8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/pkg/runtime/proc.c

-6
Original file line numberDiff line numberDiff line change
@@ -2175,12 +2175,6 @@ preemptone(P *p)
21752175
M *mp;
21762176
G *gp;
21772177

2178-
// Preemption requires more robust traceback routines.
2179-
// For now, disable.
2180-
// The if(1) silences a compiler warning about the rest of the
2181-
// function being unreachable.
2182-
if(1) return;
2183-
21842178
mp = p->m;
21852179
if(mp == nil || mp == m)
21862180
return;

0 commit comments

Comments
 (0)