Mercurial > hg > graal-compiler
comparison 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 |
comparison
equal
deleted
inserted
replaced
23094:28cc1d5e9da2 | 23095:cfb4dae8d566 |
---|---|
227 out = mx.DuplicateSuppressingStream(self.suppress).write | 227 out = mx.DuplicateSuppressingStream(self.suppress).write |
228 else: | 228 else: |
229 out = None | 229 out = None |
230 run_vm(self.args + _noneAsEmptyList(extraVMarguments) + ['-XX:-TieredCompilation', '-XX:+BootstrapJVMCI', '-version'], out=out) | 230 run_vm(self.args + _noneAsEmptyList(extraVMarguments) + ['-XX:-TieredCompilation', '-XX:+BootstrapJVMCI', '-version'], out=out) |
231 | 231 |
232 class MicrobenchRun: | |
233 def __init__(self, name, args): | |
234 self.name = name | |
235 self.args = args | |
236 | |
237 def run(self, tasks, extraVMarguments=None): | |
238 with Task(self.name + ': hosted-product ', tasks) as t: | |
239 if t: microbench(_noneAsEmptyList(extraVMarguments) + ['--'] + self.args) | |
240 | |
232 def compiler_gate_runner(suites, unit_test_runs, bootstrap_tests, tasks, extraVMarguments=None): | 241 def compiler_gate_runner(suites, unit_test_runs, bootstrap_tests, tasks, extraVMarguments=None): |
233 | 242 |
234 # Run unit tests in hosted mode | 243 # Run unit tests in hosted mode |
235 with JVMCIMode('hosted'): | 244 with JVMCIMode('hosted'): |
236 for r in unit_test_runs: | 245 for r in unit_test_runs: |
237 r.run(suites, tasks, extraVMarguments) | 246 r.run(suites, tasks, extraVMarguments) |
247 | |
248 # Run microbench in hosted mode (only for testing the JMH setup) | |
249 with JVMCIMode('hosted'): | |
250 for r in [MicrobenchRun('Microbench', ['TestJMH'])]: | |
251 r.run(tasks, extraVMarguments) | |
238 | 252 |
239 # Run ctw against rt.jar on server-hosted-jvmci | 253 # Run ctw against rt.jar on server-hosted-jvmci |
240 with JVMCIMode('hosted'): | 254 with JVMCIMode('hosted'): |
241 with Task('CTW:hosted', tasks) as t: | 255 with Task('CTW:hosted', tasks) as t: |
242 if t: ctw(['--ctwopts', '-Inline +ExitVMOnException', '-esa', '-G:+CompileTheWorldMultiThreaded', '-G:-InlineDuringParsing', '-G:-CompileTheWorldVerbose', '-XX:ReservedCodeCacheSize=300m'], _noneAsEmptyList(extraVMarguments)) | 256 if t: ctw(['--ctwopts', '-Inline +ExitVMOnException', '-esa', '-G:+CompileTheWorldMultiThreaded', '-G:-InlineDuringParsing', '-G:-CompileTheWorldVerbose', '-XX:ReservedCodeCacheSize=300m'], _noneAsEmptyList(extraVMarguments)) |