Skip to content

Commit

Permalink
runtime: re-enable preemption
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rsc committed Jul 17, 2013
1 parent 5887f14 commit b913cf8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/pkg/runtime/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b913cf8

Please sign in to comment.