Bug 1154950 - Share permanent atom and well-known symbol marking; r=sfink

This commit is contained in:
Terrence Cole
2015-04-14 13:28:46 -07:00
parent cda8ca6434
commit 3057ade782
5 changed files with 39 additions and 51 deletions

View File

@@ -226,7 +226,7 @@ js::MarkPermanentAtoms(JSTracer* trc)
const AtomStateEntry& entry = r.front();
JSAtom* atom = entry.asPtr();
MarkPermanentAtom(trc, atom, "permanent_table");
TraceProcessGlobalRoot(trc, atom, "permanent_table");
}
}
}
@@ -241,7 +241,7 @@ js::MarkWellKnownSymbols(JSTracer* trc)
if (WellKnownSymbols* wks = rt->wellKnownSymbols) {
for (size_t i = 0; i < JS::WellKnownSymbolLimit; i++)
MarkWellKnownSymbol(trc, wks->get(i));
TraceProcessGlobalRoot(trc, wks->get(i).get(), "well_known_symbol");
}
}