Mercurial > hg > graal-jvmci-8
diff mx/sanitycheck.py @ 9803:8e33b4ebfef1
add isGraalEnabled(vm) function in commands.py
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 23 May 2013 13:14:08 +0200 |
parents | ea24896c95c9 |
children | d9fcc82766da |
line wrap: on
line diff
--- a/mx/sanitycheck.py Thu May 23 12:07:34 2013 +0200 +++ b/mx/sanitycheck.py Thu May 23 13:14:08 2013 +0200 @@ -235,15 +235,15 @@ args = ['-XX:+CompileTheWorld', '-Xbootclasspath/p:' + rtjar] - if not vm.endswith('-nograal'): + if commands.isGraalEnabled(vm): args += ['-XX:+BootstrapGraal', '-G:-Debug'] if mode >= CTWMode.NoInline: - if vm.endswith('-nograal'): + if not commands.isGraalEnabled(vm): args.append('-XX:-Inline') else: args.append('-G:-Inline') if mode >= CTWMode.NoComplex: - if not vm.endswith('-nograal'): + if commands.isGraalEnabled(vm): args += ['-G:-OptLoopTransform', '-G:-OptTailDuplication', '-G:-FullUnroll', '-G:-MemoryAwareScheduling', '-G:-PartialEscapeAnalysis'] return Test("CompileTheWorld", args, successREs=[time], scoreMatchers=[scoreMatcher], benchmarkCompilationRate=False)