Commit 517d1ccd authored by joth@chromium.org's avatar joth@chromium.org

Revert 107944 - Avoid all unnecessary calls to TLS during thread teardown

Mac base_unittests is still flaky....

Pthread is still sometimes crashing Mac on shutdown.

I'm suspicious that my handlers are tickling it.
This removes a DCHECK(), which checked status in
TLS during the teardown.

TBR=rtenneti
Review URL: http://codereview.chromium.org/8424013

TBR=jar@chromium.org
Review URL: http://codereview.chromium.org/8431003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107958 0039d316-1c4b-4281-b951-d872f2087c98
parent 67f1288f
...@@ -203,6 +203,7 @@ ThreadData* ThreadData::Get() { ...@@ -203,6 +203,7 @@ ThreadData* ThreadData::Get() {
void ThreadData::OnThreadTermination(void* thread_data) { void ThreadData::OnThreadTermination(void* thread_data) {
if (!kTrackAllTaskObjects) if (!kTrackAllTaskObjects)
return; // Not compiled in. return; // Not compiled in.
DCHECK(tls_index_.initialized());
if (!thread_data) if (!thread_data)
return; return;
reinterpret_cast<ThreadData*>(thread_data)->OnThreadTerminationCleanup(); reinterpret_cast<ThreadData*>(thread_data)->OnThreadTerminationCleanup();
......
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