зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1529735, assert that only either sCCRunner or sICCRunner is active, not both, r=mccr8
--HG-- extra : rebase_source : dcfcc9b730e964561fe423edded4190170932293
This commit is contained in:
Родитель
cba347a52b
Коммит
0205a2035e
|
@ -1906,11 +1906,12 @@ void nsJSContext::RunNextCollectorTimer(JS::GCReason aReason,
|
||||||
"Don't check the CC timers if the CC is locked out.");
|
"Don't check the CC timers if the CC is locked out.");
|
||||||
|
|
||||||
if (sCCRunner) {
|
if (sCCRunner) {
|
||||||
|
MOZ_ASSERT(!sICCRunner,
|
||||||
|
"Shouldn't have both sCCRunner and sICCRunner active at the "
|
||||||
|
"same time");
|
||||||
sCCRunner->SetDeadline(aDeadline);
|
sCCRunner->SetDeadline(aDeadline);
|
||||||
runnable = sCCRunner;
|
runnable = sCCRunner;
|
||||||
}
|
} else if (sICCRunner) {
|
||||||
|
|
||||||
if (sICCRunner) {
|
|
||||||
sICCRunner->SetDeadline(aDeadline);
|
sICCRunner->SetDeadline(aDeadline);
|
||||||
runnable = sICCRunner;
|
runnable = sICCRunner;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче