зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1457703 - Fix count of compacting update tasks started r=sfink a=abillings
This commit is contained in:
Родитель
befc3a0e32
Коммит
3a38aac2ae
|
@ -2818,7 +2818,7 @@ GCRuntime::updateCellPointers(Zone* zone, AllocKinds kinds, size_t bgTaskCount)
|
|||
for (size_t i = 0; i < bgTaskCount && !bgArenas.done(); i++) {
|
||||
bgTasks[i].emplace(rt, &bgArenas, lock);
|
||||
startTask(*bgTasks[i], gcstats::PhaseKind::COMPACT_UPDATE_CELLS, lock);
|
||||
tasksStarted = i;
|
||||
tasksStarted++;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2829,6 +2829,8 @@ GCRuntime::updateCellPointers(Zone* zone, AllocKinds kinds, size_t bgTaskCount)
|
|||
|
||||
for (size_t i = 0; i < tasksStarted; i++)
|
||||
joinTask(*bgTasks[i], gcstats::PhaseKind::COMPACT_UPDATE_CELLS, lock);
|
||||
for (size_t i = tasksStarted; i < MaxCellUpdateBackgroundTasks; i++)
|
||||
MOZ_ASSERT(bgTasks[i].isNothing());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче