зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
15904a7bf0
Коммит
8705da7730
|
@ -1336,6 +1336,11 @@ class XPCShellTests(object):
|
||||||
if not self.updateMozinfo(prefs, options):
|
if not self.updateMozinfo(prefs, options):
|
||||||
return False
|
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
|
self.stack_fixer_function = None
|
||||||
if self.utility_path and os.path.exists(self.utility_path):
|
if self.utility_path and os.path.exists(self.utility_path):
|
||||||
self.stack_fixer_function = get_stack_fixer_function(self.utility_path,
|
self.stack_fixer_function = get_stack_fixer_function(self.utility_path,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче