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:
Olli Pettay 2019-03-02 18:39:41 +02:00
Родитель cba347a52b
Коммит 0205a2035e
1 изменённых файлов: 4 добавлений и 3 удалений

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

@ -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;
} }