Bug 1612714 - Reduce the amount of XPCShell threads with TSan. r=gbrown

Differential Revision: https://phabricator.services.mozilla.com/D61573

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Christian Holler 2020-02-05 14:53:56 +00:00
Родитель 15904a7bf0
Коммит 8705da7730
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -1336,6 +1336,11 @@ class XPCShellTests(object):
if not self.updateMozinfo(prefs, options):
return False
if "tsan" in self.mozInfo and self.mozInfo["tsan"] and not options.get('threadCount'):
# TSan requires significantly more memory, so reduce the amount of parallel
# tests we run to avoid OOMs and timeouts.
self.threadCount = self.threadCount / 2
self.stack_fixer_function = None
if self.utility_path and os.path.exists(self.utility_path):
self.stack_fixer_function = get_stack_fixer_function(self.utility_path,