зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1257903 - Fix spurious GC hazard on a CLOSED TREE r=me
This commit is contained in:
Родитель
a946199796
Коммит
67dfdde2d4
|
@ -7343,6 +7343,11 @@ js::gc::CheckHashTablesAfterMovingGC(JSRuntime* rt)
|
||||||
*/
|
*/
|
||||||
for (ZonesIter zone(rt, SkipAtoms); !zone.done(); zone.next()) {
|
for (ZonesIter zone(rt, SkipAtoms); !zone.done(); zone.next()) {
|
||||||
zone->checkUniqueIdTableAfterMovingGC();
|
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()) {
|
for (ZoneCellIter i(zone, AllocKind::BASE_SHAPE); !i.done(); i.next()) {
|
||||||
BaseShape* baseShape = i.get<BaseShape>();
|
BaseShape* baseShape = i.get<BaseShape>();
|
||||||
if (baseShape->hasTable())
|
if (baseShape->hasTable())
|
||||||
|
|
Загрузка…
Ссылка в новой задаче