зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
4bbef4cb43
Коммит
0c433ccc87
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче