I might revert this depending what it does on outside Android in memory usage since its Android relevant.

1397864, put back the higher GC budget when GC is triggered by a timer
This commit is contained in:
win7-7 2024-04-27 15:58:54 +03:00 committed by wuggy
commit 5893bbe274

View file

@ -1818,7 +1818,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;