changeset 23307:c75c5e73fd65

Deploy all JVM_{product,fastdebug}_{jvmci,server} variants.
author Roland Schatz <roland.schatz@oracle.com>
date Tue, 09 Feb 2016 17:47:27 +0100
parents 7b09dede4552
children b9114ca0c174
files mx.jvmci/mx_jvmci.py
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mx.jvmci/mx_jvmci.py	Mon Feb 08 10:05:21 2016 +0100
+++ b/mx.jvmci/mx_jvmci.py	Tue Feb 09 17:47:27 2016 +0100
@@ -1676,12 +1676,20 @@
 
     run_vm(['-javaagent:' + joljar, '-cp', os.pathsep.join([mx.classpath(), joljar]), "org.openjdk.jol.MainObjectInternals"] + candidates)
 
+def deploy_binary(args):
+    for vmbuild in ['product', 'fastdebug']:
+        for vm in ['jvmci', 'server']:
+            if vmbuild != _vmbuild and vm != get_vm():
+                mx.instantiateDistribution('JVM_<vmbuild>_<vm>', dict(vmbuild=vmbuild, vm=vm))
+    mx.deploy_binary(args)
+
 mx.update_commands(_suite, {
     'build': [build, ''],
     'buildjmh': [buildjmh, '[-options]'],
     'buildvars': [buildvars, ''],
     'buildvms': [buildvms, '[-options]'],
     'c1visualizer' : [c1visualizer, ''],
+    'deploy-binary' : [deploy_binary, ''],
     'export': [export, '[-options] [zipfile]'],
     'hsdis': [hsdis, '[att]'],
     'hcfdis': [hcfdis, ''],