Commit e9c7fbcf authored by Markus Stange's avatar Markus Stange
Browse files

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

MozReview-Commit-ID: 2vdcgCcdOYJ

--HG--
extra : rebase_source : 2a42caebc2a80b4d634eb741bbc196a718379e22
parent 281e42f9
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -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