]> Cypherpunks repositories - gostls13.git/commit
runtime: disable parallel for tests under race detector.
authorDmitriy Vyukov <dvyukov@google.com>
Tue, 6 Nov 2012 08:09:40 +0000 (12:09 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Tue, 6 Nov 2012 08:09:40 +0000 (12:09 +0400)
commitd6b9a03b7f6f158c470405e2e4d6a68dcd094a95
tree7f430068aadafdd60b445294ffb91bbdc3325783
parent64ee6b64b5245c0f1250f696f7eb5adc092285f3
runtime: disable parallel for tests under race detector.
The race detector does not understand ParFor synchronization, because it's implemented in C.
If run with -cpu=2 currently race detector says:
 WARNING: DATA RACE
 Read by goroutine 5:
  runtime_test.TestParForParallel()
      src/pkg/runtime/parfor_test.go:118 +0x2e0
  testing.tRunner()
      src/pkg/testing/testing.go:301 +0x8f
 Previous write by goroutine 6:
  runtime_test.funcĀ·024()
      src/pkg/runtime/parfor_test.go:111 +0x52

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6811082
src/pkg/runtime/parfor_test.go