зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1548223 - Don't assert in Realm's destructor if we have shutdown GC leaks. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D29623 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
3a6c1c6a49
Коммит
9818272c76
|
@ -66,9 +66,10 @@ Realm::~Realm() {
|
|||
runtime_->lcovOutput().writeLCovResult(lcovOutput);
|
||||
}
|
||||
|
||||
// We cannot have a debuggee realm here so we don't have to call
|
||||
// runtime->decrementNumDebuggeeRealms().
|
||||
MOZ_ASSERT(!isDebuggee());
|
||||
// We can have a debuggee realm here only if we are destroying the runtime and
|
||||
// leaked GC things.
|
||||
MOZ_ASSERT_IF(runtime_->gc.shutdownCollectedEverything(), !isDebuggee());
|
||||
unsetIsDebuggee();
|
||||
|
||||
MOZ_ASSERT(runtime_->numRealms > 0);
|
||||
runtime_->numRealms--;
|
||||
|
|
Загрузка…
Ссылка в новой задаче