1
0
mirror of https://github.com/golang/go synced 2024-11-05 17:36:15 -07:00

runtime: disable preemption

There are various problems, and both Dmitriy and I
will be away for the next week. Make the runtime a bit
more stable while we're gone.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/10848043
This commit is contained in:
Russ Cox 2013-07-01 17:57:09 -04:00
parent fd23958f49
commit 08e064135d

View File

@ -2149,6 +2149,12 @@ preemptone(P *p)
M *mp; M *mp;
G *gp; 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; mp = p->m;
if(mp == nil || mp == m) if(mp == nil || mp == m)
return; return;