Bug 1288823, part 1 - Use doSweep more consistently in XPCJSRuntime::FinalizeCallback. r=mrbkap

This commit is contained in:
Andrew McCreight 2016-07-25 16:32:55 -07:00
parent 5e5637e77f
commit 7e800a8998

View File

@ -842,7 +842,7 @@ XPCJSRuntime::FinalizeCallback(JSFreeOp* fop,
}
}
if (!isCompartmentGC) {
if (doSweep) {
for (auto i = self->mClassInfo2NativeSetMap->Iter(); !i.Done(); i.Next()) {
auto entry = static_cast<ClassInfo2NativeSetMap::Entry*>(i.Get());
if (!entry->value->IsMarked())