Bug 1257903 - Fix spurious GC hazard on a CLOSED TREE r=me

This commit is contained in:
Jon Coppeard 2016-03-22 17:44:03 +00:00
Родитель a946199796
Коммит 67dfdde2d4
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -7343,6 +7343,11 @@ js::gc::CheckHashTablesAfterMovingGC(JSRuntime* rt)
*/
for (ZonesIter zone(rt, SkipAtoms); !zone.done(); zone.next()) {
zone->checkUniqueIdTableAfterMovingGC();
// ZoneCellIter could GC were this not called under GC.
MOZ_ASSERT(rt->isHeapBusy());
JS::AutoSuppressGCAnalysis noAnalysis;
for (ZoneCellIter i(zone, AllocKind::BASE_SHAPE); !i.done(); i.next()) {
BaseShape* baseShape = i.get<BaseShape>();
if (baseShape->hasTable())