Sadly TSAN still reports this as a race, even when we're obviously writing the

same values.  Initializing with the declaration should quiet it down.

BUG=
R=caryclark@google.com

Author: mtklein@google.com

Review URL: https://codereview.chromium.org/25713004

git-svn-id: http://skia.googlecode.com/svn/trunk@11574 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
commit-bot@chromium.org 2013-10-02 16:15:44 +00:00
Родитель 354fd97ee0
Коммит 409774e8ac
1 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -447,8 +447,9 @@ static int comparePaths(skiatest::Reporter* reporter, const SkPath& one, const S
return errors2x2 > MAX_ERRORS ? errors2x2 : 0;
}
static int testNumber;
static const char* testName;
// Default values for when reporter->verbose() is false.
static int testNumber = 1;
static const char* testName = "pathOpTest";
static void writeTestName(const char* nameSuffix, SkMemoryWStream& outFile) {
outFile.writeText(testName);
@ -655,9 +656,6 @@ int initializeTests(skiatest::Reporter* reporter, const char* test) {
testNumber = atoi(numLoc) + 1;
}
}
} else {
testName = "pathOpTest";
testNumber = 1;
}
return reporter->allowThreaded() ? SkThreadPool::kThreadPerCore : 1;
}