Bug 1296998 - Fix Wmaybe-uninitialized warning in nsJSEnvironment.cpp. r=smaug

MozReview-Commit-ID: J21IuAo8Udu
This commit is contained in:
James Cheng 2016-08-21 22:38:00 -04:00
Родитель 2b403c0acf
Коммит 1b45836b44
1 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -1590,11 +1590,6 @@ nsJSContext::EndCycleCollectionCallback(CycleCollectorResults &aResults)
NS_GC_DELAY - std::min(ccNowDuration, kMaxICCDuration));
}
PRTime endCCTime;
if (sPostGCEventsToObserver) {
endCCTime = PR_Now();
}
// Log information about the CC via telemetry, JSON and the console.
Telemetry::Accumulate(Telemetry::CYCLE_COLLECTOR_FINISH_IGC, gCCStats.mAnyLockedOut);
Telemetry::Accumulate(Telemetry::CYCLE_COLLECTOR_SYNC_SKIPPABLE, gCCStats.mRanSyncForgetSkippable);
@ -1687,7 +1682,8 @@ nsJSContext::EndCycleCollectionCallback(CycleCollectorResults &aResults)
u"\"removed\": %lu } "
u"}");
nsString json;
json.Adopt(nsTextFormatter::smprintf(kJSONFmt.get(), endCCTime, ccNowDuration,
json.Adopt(nsTextFormatter::smprintf(kJSONFmt.get(), PR_Now(), ccNowDuration,
gCCStats.mMaxSliceTime,
gCCStats.mTotalSliceTime,
gCCStats.mMaxGCDuration,