Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)

MozReview-Commit-ID: DKR6ROiHRS7
This commit is contained in:
Bill McCloskey
2017-06-12 12:34:10 -07:00
parent 0dc804e305
commit f69608368b
613 changed files with 6338 additions and 3568 deletions

View File

@@ -571,8 +571,10 @@ ScriptPreloader::WriteCache()
MonitorAutoUnlock mau(mSaveMonitor);
NS_DispatchToMainThread(
NewRunnableMethod(this, &ScriptPreloader::PrepareCacheWrite),
NS_DISPATCH_SYNC);
NewRunnableMethod("ScriptPreloader::PrepareCacheWrite",
this,
&ScriptPreloader::PrepareCacheWrite),
NS_DISPATCH_SYNC);
}
if (mSaveComplete) {
@@ -802,7 +804,9 @@ ScriptPreloader::OffThreadDecodeCallback(void* token, void* context)
if (cache->mToken && !cache->mFinishDecodeRunnablePending) {
cache->mFinishDecodeRunnablePending = true;
NS_DispatchToMainThread(
NewRunnableMethod(cache, &ScriptPreloader::DoFinishOffThreadDecode));
NewRunnableMethod("ScriptPreloader::DoFinishOffThreadDecode",
cache,
&ScriptPreloader::DoFinishOffThreadDecode));
}
}