Skip to content

Commit

Permalink
Bug 1649010 - Only set MainThread thread name on non-Linux platforms.…
Browse files Browse the repository at this point in the history
… r=florian

Differential Revision: https://phabricator.services.mozilla.com/D89799
  • Loading branch information
evilpie committed Sep 10, 2020
1 parent 893992b commit 7b6dfa0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions toolkit/xre/nsAppRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4801,7 +4801,9 @@ int XREMain::XRE_main(int argc, char* argv[], const BootstrapConfig& aConfig) {

mozilla::LogModule::Init(gArgc, gArgv);

#ifndef XP_LINUX
NS_SetCurrentThreadName("MainThread");
#endif

AUTO_BASE_PROFILER_LABEL("XREMain::XRE_main (around Gecko Profiler)", OTHER);
AUTO_PROFILER_INIT;
Expand Down

0 comments on commit 7b6dfa0

Please sign in to comment.