Commit ae211b85 authored by paivanof@gmail.com's avatar paivanof@gmail.com

TSAN: Stop PollingThread before deleting it to avoid race on changing virtual table.

BUG=139849

Review URL: https://chromiumcodereview.appspot.com/10828105

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149370 0039d316-1c4b-4281-b951-d872f2087c98
parent 4796e3be
...@@ -31,6 +31,7 @@ bool IsElementSignificantlyDifferent(bool can_provide_element1, ...@@ -31,6 +31,7 @@ bool IsElementSignificantlyDifferent(bool can_provide_element1,
} }
void DeleteThread(base::Thread* thread) { void DeleteThread(base::Thread* thread) {
thread->Stop();
delete thread; delete thread;
} }
......
...@@ -1029,11 +1029,3 @@ ...@@ -1029,11 +1029,3 @@
fun:browser_sync::NewNonFrontendDataTypeController::StartAssociationWithSharedChangeProcessor fun:browser_sync::NewNonFrontendDataTypeController::StartAssociationWithSharedChangeProcessor
fun:base::internal::RunnableAdapter::Run fun:base::internal::RunnableAdapter::Run
} }
{
bug_139849
ThreadSanitizer:Race
fun:base::Thread::~Thread
fun:device_orientation::ProviderImpl::PollingThread::~PollingThread
fun:::DeleteThread
fun:base::internal::RunnableAdapter::Run
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment