From d6b9a03b7f6f158c470405e2e4d6a68dcd094a95 Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Tue, 6 Nov 2012 12:09:40 +0400 Subject: [PATCH] =?utf8?q?runtime:=20disable=20parallel=20for=20tests=20un?= =?utf8?q?der=20race=20detector.=20The=20race=20detector=20does=20not=20un?= =?utf8?q?derstand=20ParFor=20synchronization,=20because=20it's=20implemen?= =?utf8?q?ted=20in=20C.=20If=20run=20with=20-cpu=3D2=20currently=20race=20?= =?utf8?q?detector=20says:=20=20WARNING:=20DATA=20RACE=20=20Read=20by=20go?= =?utf8?q?routine=205:=20=20=20runtime=5Ftest.TestParForParallel()=20=20?= =?utf8?q?=20=20=20=20=20src/pkg/runtime/parfor=5Ftest.go:118=20+0x2e0=20?= =?utf8?q?=20=20testing.tRunner()=20=20=20=20=20=20=20src/pkg/testing/test?= =?utf8?q?ing.go:301=20+0x8f=20=20Previous=20write=20by=20goroutine=206:?= =?utf8?q?=20=20=20runtime=5Ftest.func=C2=B7024()=20=20=20=20=20=20=20src/?= =?utf8?q?pkg/runtime/parfor=5Ftest.go:111=20+0x52?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6811082 --- src/pkg/runtime/parfor_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pkg/runtime/parfor_test.go b/src/pkg/runtime/parfor_test.go index 0547db0209..7644354ab3 100644 --- a/src/pkg/runtime/parfor_test.go +++ b/src/pkg/runtime/parfor_test.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// The race detector does not understand ParFor synchronization. +// +build !race + package runtime_test import ( -- 2.48.1