All known issues with preemption have beed fixed.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
12008044
// For now, disable.
// The if(1) silences a compiler warning about the rest of the
// function being unreachable.
-if(1) return;
+if(0) return;
mp = p->m;
if(mp == nil || mp == m)
}
func TestPreemption(t *testing.T) {
- t.Skip("preemption is disabled")
// Test that goroutines are preempted at function calls.
const N = 5
c := make(chan bool)
}
func TestPreemptionGC(t *testing.T) {
- t.Skip("preemption is disabled")
// Test that pending GC preempts running goroutines.
const P = 5
defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(P + 1))