Bug 1323100 - Stop double-registering the LazyIdleThread with the profiler. r=froydnj

MozReview-Commit-ID: 2vdcgCcdOYJ

--HG--
extra : rebase_source : 2a42caebc2a80b4d634eb741bbc196a718379e22
This commit is contained in:
Markus Stange 2016-12-21 23:07:26 +01:00
Родитель 281e42f926
Коммит e9c7fbcf49
1 изменённых файлов: 0 добавлений и 7 удалений

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

@ -180,11 +180,6 @@ LazyIdleThread::EnsureThread()
void
LazyIdleThread::InitThread()
{
char aLocal;
profiler_register_thread(mName.get(), &aLocal);
PR_SetCurrentThreadName(mName.get());
// Happens on mThread but mThread may not be set yet...
nsCOMPtr<nsIThreadInternal> thread(do_QueryInterface(NS_GetCurrentThread()));
@ -211,8 +206,6 @@ LazyIdleThread::CleanupThread()
MOZ_ASSERT(!mThreadIsShuttingDown, "Shouldn't be true ever!");
mThreadIsShuttingDown = true;
}
profiler_unregister_thread();
}
void