From d6b9a03b7f6f158c470405e2e4d6a68dcd094a95 Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Tue, 6 Nov 2012 12:09:40 +0400 Subject: [PATCH] =?UTF-8?q?runtime:=20disable=20parallel=20for=20tests=20u?= =?UTF-8?q?nder=20race=20detector.=20The=20race=20detector=20does=20not=20?= =?UTF-8?q?understand=20ParFor=20synchronization,=20because=20it's=20imple?= =?UTF-8?q?mented=20in=20C.=20If=20run=20with=20-cpu=3D2=20currently=20rac?= =?UTF-8?q?e=20detector=20says:=20=20WARNING:=20DATA=20RACE=20=20Read=20by?= =?UTF-8?q?=20goroutine=205:=20=20=20runtime=5Ftest.TestParForParallel()?= =?UTF-8?q?=20=20=20=20=20=20=20src/pkg/runtime/parfor=5Ftest.go:118=20+0x?= =?UTF-8?q?2e0=20=20=20testing.tRunner()=20=20=20=20=20=20=20src/pkg/testi?= =?UTF-8?q?ng/testing.go:301=20+0x8f=20=20Previous=20write=20by=20goroutin?= =?UTF-8?q?e=206:=20=20=20runtime=5Ftest.func=C2=B7024()=20=20=20=20=20=20?= =?UTF-8?q?=20src/pkg/runtime/parfor=5Ftest.go:111=20+0x52?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 (