Bug 1499043 - ensure JSGC_DISABLE_POISONING is enable for raptor and jsshell-bench tests r=jmaher

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
florin.strugariu 2018-10-17 09:29:26 +00:00
parent 9cac5ce7af
commit eeb42967ae
2 changed files with 10 additions and 0 deletions

View File

@ -110,12 +110,19 @@ class Benchmark(object):
def run(self):
self.reset()
# Update the environment variables
env = os.environ.copy()
# disable "GC poisoning" Bug# 1499043
env['JSGC_DISABLE_POISONING'] = '1'
process_args = {
'cmd': self.command,
'cwd': self.path,
'onFinish': self.collect_results,
'processOutputLine': self.process_line,
'stream': sys.stdout,
'env': env,
}
proc = ProcessHandler(**process_args)
proc.run()

View File

@ -440,6 +440,9 @@ class Raptor(TestingMixin, MercurialScript, CodeCoverageMixin, AndroidMixin):
env['SCRIPTSPATH'] = scripts_path
env['EXTERNALTOOLSPATH'] = external_tools_path
# disable "GC poisoning" Bug# 1499043
env['JSGC_DISABLE_POISONING'] = '1'
if self.repo_path is not None:
env['MOZ_DEVELOPER_REPO_DIR'] = self.repo_path
if self.obj_path is not None: