Commit 1828ea89 authored by Sebastian Hengst's avatar Sebastian Hengst
Browse files

Backed out changeset 7fdcabdbb675 (bug 1024669) for failing mda, GTest and...

Backed out changeset 7fdcabdbb675 (bug 1024669) for failing mda, GTest and talos jobs. r=backout on a CLOSED TREE
parent 7c5a88b2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -29,7 +29,6 @@
#include "HRTFDatabaseLoader.h"
#include "HRTFDatabase.h"
#include "GeckoProfiler.h"
#include "nsThreadUtils.h"

using namespace mozilla;

@@ -154,7 +153,7 @@ void HRTFDatabaseLoader::MainThreadRelease()
static void databaseLoaderEntry(void* threadData)
{
    AutoProfilerRegister registerThread("HRTFDatabaseLdr");
    NS_SetCurrentThreadName("HRTFDatabaseLdr");
    PR_SetCurrentThreadName("HRTFDatabaseLdr");

    HRTFDatabaseLoader* loader = reinterpret_cast<HRTFDatabaseLoader*>(threadData);
    MOZ_ASSERT(loader);
+1 −1
Original line number Diff line number Diff line
@@ -341,7 +341,7 @@ void
StorageDBThread::ThreadFunc(void* aArg)
{
  AutoProfilerRegister registerThread("localStorage DB");
  NS_SetCurrentThreadName("localStorage DB");
  PR_SetCurrentThreadName("localStorage DB");
  mozilla::IOInterposer::RegisterCurrentThread();

  StorageDBThread* thread = static_cast<StorageDBThread*>(aArg);
+1 −1
Original line number Diff line number Diff line
@@ -2792,7 +2792,7 @@ WorkerThreadPrimaryRunnable::Run()

  char stackBaseGuess;

  NS_SetCurrentThreadName("DOM Worker");
  PR_SetCurrentThreadName("DOM Worker");

  nsAutoCString threadName;
  threadName.AssignLiteral("DOM Worker '");
+1 −2
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
#include "mozJSComponentLoader.h"
#include "nsAutoPtr.h"
#include "nsNetUtil.h"
#include "nsThreadUtils.h"

#include "nsIMemoryInfoDumper.h"
#include "nsIMemoryReporter.h"
@@ -1231,7 +1230,7 @@ static void
WatchdogMain(void* arg)
{
    mozilla::AutoProfilerRegister registerThread("JS Watchdog");
    NS_SetCurrentThreadName("JS Watchdog");
    PR_SetCurrentThreadName("JS Watchdog");

    Watchdog* self = static_cast<Watchdog*>(arg);
    WatchdogManager* manager = self->Manager();
+1 −2
Original line number Diff line number Diff line
@@ -442,8 +442,7 @@ void CacheIOThread::ThreadFunc(void* aClosure)
{
  // XXXmstange We'd like to register this thread with the profiler, but doing
  // so causes leaks, see bug 1323100.
  NS_SetCurrentThreadName("Cache2 I/O");

  PR_SetCurrentThreadName("Cache2 I/O");
  mozilla::IOInterposer::RegisterCurrentThread();
  CacheIOThread* thread = static_cast<CacheIOThread*>(aClosure);
  thread->ThreadFunc();
Loading