changeset 22291:d2ec93b0a88e

moved gate from mx_jvmci.py to mx_gate.py in core mx
author Doug Simon <doug.simon@oracle.com>
date Thu, 23 Jul 2015 13:06:53 +0200
parents 109a255a3a47
children e59c9d4a10b0
files mx.graal/mx_graal.py mx.graal/suite.py
diffstat 2 files changed, 6 insertions(+), 53 deletions(-) [+]
line wrap: on
line diff
--- a/mx.graal/mx_graal.py	Thu Jul 23 11:12:15 2015 +0200
+++ b/mx.graal/mx_graal.py	Thu Jul 23 13:06:53 2015 +0200
@@ -32,9 +32,10 @@
 
 import mx
 import mx_jvmci
-from mx_jvmci import JvmciJDKDeployedDist, buildvms, vm, VM, Task, parseVmArgs, get_vm, ctw, isVMSupported
+from mx_jvmci import JvmciJDKDeployedDist, vm, VM, Task, parseVmArgs, get_vm, ctw, isVMSupported
 import mx_unittest
 from mx_unittest import unittest
+import mx_gate
 
 _suite = mx.suite('graal')
 
@@ -72,8 +73,8 @@
     JvmciJDKDeployedDist('GRAAL_TRUFFLE'),
 ]
 
-mx_jvmci.jacocoIncludes += ['com.oracle.graal.*']
-mx_jvmci.jacocoExcludedAnnotations += ['@Snippet', '@ClassSubstitution']
+mx_gate.add_jacoco_includes(['com.oracle.graal.*'])
+mx_gate.add_jacoco_excluded_annotations(['@Snippet', '@ClassSubstitution'])
 
 def _unittest_config_participant(config):
     vmArgs, mainClass, mainClassArgs = config
@@ -171,14 +172,6 @@
     vm(args + jmhArgs)
 
 def _graal_gate_runner(args, tasks):
-    # Build server-hosted-jvmci now so we can run the unit tests
-    with Task('BuildHotSpotJVMCIHosted: product', tasks) as t:
-        if t: buildvms(['--vms', 'server', '--builds', 'product', '--check-distributions'])
-
-    # Run unit tests on server-hosted-jvmci
-    with VM('server', 'product'):
-        with Task('UnitTests:hosted-product', tasks) as t:
-            if t: unittest(['--enable-timing', '--verbose', '--fail-fast'])
 
     # Run unit tests on server-hosted-jvmci with -G:-SSA_LIR
     with VM('server', 'product'):
@@ -190,38 +183,15 @@
             if t: ctw(['--ctwopts', '-Inline +ExitVMOnException', '-esa', '-G:+CompileTheWorldMultiThreaded', '-G:-InlineDuringParsing', '-G:-CompileTheWorldVerbose'])
 
     # Build the other VM flavors
-    with Task('BuildHotSpotGraalOthers: fastdebug,product', tasks) as t:
-        if t: buildvms(['--vms', 'jvmci,server', '--builds', 'fastdebug,product', '--check-distributions'])
-
-    with VM('jvmci', 'fastdebug'):
-        with Task('BootstrapWithSystemAssertions:fastdebug', tasks) as t:
-            if t: vm(['-esa', '-XX:-TieredCompilation', '-version'])
-
     with VM('jvmci', 'fastdebug'):
         with Task('BootstrapEconomyWithSystemAssertions:fastdebug', tasks) as t:
             if t: vm(['-esa', '-XX:-TieredCompilation', '-G:CompilerConfiguration=economy', '-version'])
 
     with VM('jvmci', 'fastdebug'):
-        with Task('BootstrapWithSystemAssertionsNoCoop:fastdebug', tasks) as t:
-            if t: vm(['-esa', '-XX:-TieredCompilation', '-XX:-UseCompressedOops', '-version'])
-
-    with VM('jvmci', 'fastdebug'):
         with Task('BootstrapWithExceptionEdges:fastdebug', tasks) as t:
             if t: vm(['-esa', '-XX:-TieredCompilation', '-G:+StressInvokeWithExceptionNode', '-version'])
 
     with VM('jvmci', 'product'):
-        with Task('BootstrapWithGCVerification:product', tasks) as t:
-            if t:
-                out = mx.DuplicateSuppressingStream(['VerifyAfterGC:', 'VerifyBeforeGC:']).write
-                vm(['-XX:-TieredCompilation', '-XX:+UnlockDiagnosticVMOptions', '-XX:+VerifyBeforeGC', '-XX:+VerifyAfterGC', '-version'], out=out)
-
-    with VM('jvmci', 'product'):
-        with Task('BootstrapWithG1GCVerification:product', tasks) as t:
-            if t:
-                out = mx.DuplicateSuppressingStream(['VerifyAfterGC:', 'VerifyBeforeGC:']).write
-                vm(['-XX:-TieredCompilation', '-XX:+UnlockDiagnosticVMOptions', '-XX:-UseSerialGC', '-XX:+UseG1GC', '-XX:+VerifyBeforeGC', '-XX:+VerifyAfterGC', '-version'], out=out)
-
-    with VM('jvmci', 'product'):
         with Task('BootstrapWithRegisterPressure:product', tasks) as t:
             if t:
                 registers = 'o0,o1,o2,o3,f8,f9,d32,d34' if platform.processor() == 'sparc' else 'rbx,r11,r10,r14,xmm3,xmm11,xmm14'
@@ -248,11 +218,6 @@
         with Task('DaCapo_pmd:BatchMode:product', tasks) as t:
             if t: dacapo(['-Xbatch', 'pmd'])
 
-    # ensure -Xcomp still works
-    with VM('jvmci', 'product'):
-        with Task('XCompMode:product', tasks) as t:
-            if t: vm(['-Xcomp', '-version'])
-
     # Prevent JVMCI modifications from breaking the standard builds
     if args.buildNonJVMCI:
         for vmbuild in ['product', 'fastdebug']:
@@ -267,7 +232,7 @@
                     with Task('UnitTests:' + theVm + ':' + vmbuild, tasks) as t:
                         if t: unittest(['-XX:CompileCommand=exclude,*::run*', 'graal.api', 'java.test'])
 
-mx_jvmci.gateRunners.append(_graal_gate_runner)
+mx_gate.add_gate_runner(_graal_gate_runner)
 
 def deoptalot(args):
     """bootstrap a VM with DeoptimizeALot and VerifyOops on
--- a/mx.graal/suite.py	Thu Jul 23 11:12:15 2015 +0200
+++ b/mx.graal/suite.py	Thu Jul 23 13:06:53 2015 +0200
@@ -6,7 +6,7 @@
     "suites": [
             {
                "name" : "jvmci",
-               "version" : "7d453d4d855a8c44503386f288b833ee28139558",
+               "version" : "2ecfec90e51edea0a4a59ffeaf407aaa0d3df3df",
                "urls" : [
                     {"url" : "https://lafo.ssw.uni-linz.ac.at/hg/graal-jvmci-8", "kind" : "hg"},
                     {"url" : "http://lafo.ssw.uni-linz.ac.at/nexus/content/repositories/snapshots", "kind" : "binary"},
@@ -36,18 +36,6 @@
       "sha1" : "2626a9546df09009f6da0df854e6dc1113ef7dd4",
     },
 
-    "JACOCOAGENT" : {
-      "path" : "lib/jacocoagent.jar",
-      "urls" : ["http://lafo.ssw.uni-linz.ac.at/jacoco/jacocoagent-0.7.1-1.jar"],
-      "sha1" : "2f73a645b02e39290e577ce555f00b02004650b0",
-    },
-
-    "JACOCOREPORT" : {
-      "path" : "lib/jacocoreport.jar",
-      "urls" : ["http://lafo.ssw.uni-linz.ac.at/jacoco/jacocoreport-0.7.1-2.jar"],
-      "sha1" : "a630436391832d697a12c8f7daef8655d7a1efd2",
-    },
-
     "DACAPO_SCALA" : {
       "path" : "lib/dacapo-scala-0.1.0-20120216.jar",
       "urls" : [