зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1313897 - Suppress assertion about non-empty UnboxedLayout list if GC cells were leaked at shutdown r=sfink
This commit is contained in:
Родитель
dca07ffc3a
Коммит
87e23bd975
|
@ -117,6 +117,13 @@ JSCompartment::~JSCompartment()
|
|||
js_delete(nonSyntacticLexicalEnvironments_),
|
||||
js_free(enumerators);
|
||||
|
||||
#ifdef DEBUG
|
||||
// Avoid assertion destroying the unboxed layouts list if the embedding
|
||||
// leaked GC things.
|
||||
if (!rt->gc.shutdownCollectedEverything())
|
||||
unboxedLayouts.clear();
|
||||
#endif
|
||||
|
||||
runtime_->numCompartments--;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче