bug 1397864, put back the higher GC budget when GC is triggered by a timer, r=mccr8

This commit is contained in:
Olli Pettay 2017-09-07 20:43:30 +01:00
Родитель 62e34c73d8
Коммит 13af66d6f4
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -1788,7 +1788,7 @@ InterSliceGCRunnerFired(TimeStamp aDeadline, void* aData)
// to run since that means we may have significant amount garbage to collect
// and better to GC in several longer slices than in a very long one.
int64_t budget = aDeadline.IsNull() ?
int64_t(sActiveIntersliceGCBudget) :
int64_t(sActiveIntersliceGCBudget * 2) :
int64_t((aDeadline - TimeStamp::Now()).ToMilliseconds());
if (sCCLockedOut && sCCLockedOutTime) {
int64_t lockedTime = PR_Now() - sCCLockedOutTime;