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
parent cba347a52b
commit 0205a2035e

View File

@ -1906,11 +1906,12 @@ void nsJSContext::RunNextCollectorTimer(JS::GCReason aReason,
"Don't check the CC timers if the CC is locked out.");
if (sCCRunner) {
MOZ_ASSERT(!sICCRunner,
"Shouldn't have both sCCRunner and sICCRunner active at the "
"same time");
sCCRunner->SetDeadline(aDeadline);
runnable = sCCRunner;
}
if (sICCRunner) {
} else if (sICCRunner) {
sICCRunner->SetDeadline(aDeadline);
runnable = sICCRunner;
}