diff options
Diffstat (limited to 'base/threading/thread_unittest.cc')
-rw-r--r-- | base/threading/thread_unittest.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/threading/thread_unittest.cc b/base/threading/thread_unittest.cc index af8347432b..0cb964e8f7 100644 --- a/base/threading/thread_unittest.cc +++ b/base/threading/thread_unittest.cc @@ -32,6 +32,8 @@ typedef PlatformTest ThreadTest; namespace { void ToggleValue(bool* value) { + ANNOTATE_BENIGN_RACE(value, "Test-only data race on boolean " + "in base/thread_unittest"); *value = !*value; } @@ -39,6 +41,8 @@ class SleepInsideInitThread : public Thread { public: SleepInsideInitThread() : Thread("none") { init_called_ = false; + ANNOTATE_BENIGN_RACE( + this, "Benign test-only data race on vptr - http://crbug.com/98219"); } ~SleepInsideInitThread() override { Stop(); } |