summaryrefslogtreecommitdiffstats
path: root/base/threading
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-27 14:11:44 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-27 14:11:44 +0000
commitded6e7eb09dcd19a286d8fd5ca07c8076f66c49f (patch)
tree31f1cd1f60ea0301e8a9ba6a06276e744c797b25 /base/threading
parentd3e2026e96995a3c514b396c678cac7fb21db0d4 (diff)
downloadchromium_src-ded6e7eb09dcd19a286d8fd5ca07c8076f66c49f.zip
chromium_src-ded6e7eb09dcd19a286d8fd5ca07c8076f66c49f.tar.gz
chromium_src-ded6e7eb09dcd19a286d8fd5ca07c8076f66c49f.tar.bz2
Suppress benign race in ThreadTest.SleepInsideInit
BUG=98219 TEST=none Review URL: http://codereview.chromium.org/8060011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102922 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/threading')
-rw-r--r--base/threading/thread_unittest.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/base/threading/thread_unittest.cc b/base/threading/thread_unittest.cc
index c7cb76a..fe39627 100644
--- a/base/threading/thread_unittest.cc
+++ b/base/threading/thread_unittest.cc
@@ -43,7 +43,11 @@ class SleepSome : public Task {
class SleepInsideInitThread : public Thread {
public:
- SleepInsideInitThread() : Thread("none") { init_called_ = false; }
+ SleepInsideInitThread() : Thread("none") {
+ init_called_ = false;
+ ANNOTATE_BENIGN_RACE(
+ this, "Benign test-only data race on vptr - http://crbug.com/98219");
+ }
virtual ~SleepInsideInitThread() { }
virtual void Init() {