Mercurial > hg > graal-compiler
diff mx.graal/mx_graal_9.py @ 23095:cfb4dae8d566
gate: add check for verifying the jmh-runner setup.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Thu, 26 Nov 2015 15:25:09 +0100 |
parents | 6bbdf92109e6 |
children | 319230b97faf |
line wrap: on
line diff
--- a/mx.graal/mx_graal_9.py Thu Nov 26 14:45:07 2015 +0100 +++ b/mx.graal/mx_graal_9.py Thu Nov 26 15:25:09 2015 +0100 @@ -229,6 +229,15 @@ out = None run_vm(self.args + _noneAsEmptyList(extraVMarguments) + ['-XX:-TieredCompilation', '-XX:+BootstrapJVMCI', '-version'], out=out) +class MicrobenchRun: + def __init__(self, name, args): + self.name = name + self.args = args + + def run(self, tasks, extraVMarguments=None): + with Task(self.name + ': hosted-product ', tasks) as t: + if t: microbench(_noneAsEmptyList(extraVMarguments) + ['--'] + self.args) + def compiler_gate_runner(suites, unit_test_runs, bootstrap_tests, tasks, extraVMarguments=None): # Run unit tests in hosted mode @@ -236,6 +245,11 @@ for r in unit_test_runs: r.run(suites, tasks, extraVMarguments) + # Run microbench in hosted mode (only for testing the JMH setup) + with JVMCIMode('hosted'): + for r in [MicrobenchRun('Microbench', ['TestJMH'])]: + r.run(tasks, extraVMarguments) + # Run ctw against rt.jar on server-hosted-jvmci with JVMCIMode('hosted'): with Task('CTW:hosted', tasks) as t: