mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
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:
parent
cba347a52b
commit
0205a2035e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user