Bug 1732161 - Remove unused ccType from ShouldMergeZones r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D127012
This commit is contained in:
Steve Fink 2021-10-04 23:06:07 +00:00
Родитель 92a3ab7479
Коммит 6d01bcfb5b
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -1189,7 +1189,7 @@ class nsCycleCollector : public nsIMemoryReporter {
void FixGrayBits(bool aForceGC, TimeLog& aTimeLog); void FixGrayBits(bool aForceGC, TimeLog& aTimeLog);
bool IsIncrementalGCInProgress(); bool IsIncrementalGCInProgress();
void FinishAnyIncrementalGCInProgress(); void FinishAnyIncrementalGCInProgress();
bool ShouldMergeZones(ccType aCCType, ccIsManual aIsManual); bool ShouldMergeZones(ccIsManual aIsManual);
void BeginCollection(ccType aCCType, ccIsManual aIsManual, void BeginCollection(ccType aCCType, ccIsManual aIsManual,
nsICycleCollectorListener* aManualListener); nsICycleCollectorListener* aManualListener);
@ -3511,7 +3511,7 @@ void nsCycleCollector::FinishAnyCurrentCollection() {
static const uint32_t kMinConsecutiveUnmerged = 3; static const uint32_t kMinConsecutiveUnmerged = 3;
static const uint32_t kMaxConsecutiveMerged = 3; static const uint32_t kMaxConsecutiveMerged = 3;
bool nsCycleCollector::ShouldMergeZones(ccType aCCType, ccIsManual aIsManual) { bool nsCycleCollector::ShouldMergeZones(ccIsManual aIsManual) {
if (!mCCJSRuntime) { if (!mCCJSRuntime) {
return false; return false;
} }
@ -3603,7 +3603,7 @@ void nsCycleCollector::BeginCollection(
mGraph.Init(); mGraph.Init();
mResults.Init(); mResults.Init();
mResults.mAnyManual = aIsManual; mResults.mAnyManual = aIsManual;
bool mergeZones = ShouldMergeZones(aCCType, aIsManual); bool mergeZones = ShouldMergeZones(aIsManual);
mResults.mMergedZones = mergeZones; mResults.mMergedZones = mergeZones;
MOZ_ASSERT(!mBuilder, "Forgot to clear mBuilder"); MOZ_ASSERT(!mBuilder, "Forgot to clear mBuilder");