Bug 1553856: LazyIdleThread should set names for the nsThreads it spawns r=froydnj

Differential Revision: https://phabricator.services.mozilla.com/D32385

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Randell Jesup 2019-05-24 12:50:05 +00:00
parent cd062bb5d7
commit a859c53225

View file

@ -151,7 +151,7 @@ nsresult LazyIdleThread::EnsureThread() {
return NS_ERROR_UNEXPECTED;
}
rv = NS_NewNamedThread("Lazy Idle", getter_AddRefs(mThread), runnable);
rv = NS_NewNamedThread(mName, getter_AddRefs(mThread), runnable);
if (NS_WARN_IF(NS_FAILED(rv))) {
return rv;
}
@ -523,7 +523,7 @@ LazyIdleThread::Notify(nsITimer* aTimer) {
NS_IMETHODIMP
LazyIdleThread::GetName(nsACString& aName) {
aName.AssignLiteral("LazyIdleThread");
aName.Assign(mName);
return NS_OK;
}