mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
1373067 - Ensure CC isn't started too often
1373067 - Ensure CC isn't started too often.
This commit is contained in:
parent
137e995c26
commit
50944ecb18
1 changed files with 6 additions and 0 deletions
|
|
@ -2108,6 +2108,12 @@ nsJSContext::MaybePokeCC()
|
|||
return;
|
||||
}
|
||||
|
||||
uint32_t sinceLastCCEnd = TimeUntilNow(sLastCCEndTime);
|
||||
if (sinceLastCCEnd && sinceLastCCEnd < NS_CC_DELAY) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (ShouldTriggerCC(nsCycleCollector_suspectedCount())) {
|
||||
sCCRunnerFireCount = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue