Bug 1592537 - Fix hazard warnings because the analysis can't tell that GCParallelTask::runTask won't GC r=me CLOSED TREE

--HG--
extra : histedit_source : e7ee24460d29c770002dd5f1bde663027a41d4e0
This commit is contained in:
Jon Coppeard 2019-11-01 13:27:52 +02:00
Родитель 4bbef4cb43
Коммит 0c433ccc87
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -1812,6 +1812,11 @@ void js::GCParallelTask::runFromHelperThread(AutoLockHelperThreadState& lock) {
void GCParallelTask::runTask() {
// Run the task from either the main thread or a helper thread.
// The hazard analysis can't tell what the call to func_ will do but it's not
// allowed to GC.
JS::AutoSuppressGCAnalysis nogc;
TimeStamp timeStart = ReallyNow();
func_(this);
duration_ = TimeSince(timeStart);