# HG changeset patch # User Gilles Duboscq # Date 1347030700 -7200 # Node ID 74560fdffd516ad220fb0a91c89031d312e44a26 # Parent 270fc8772a10e0d49cbd006b75bb9376d419c676 Add a draft longtests command to mc's commands diff -r 270fc8772a10 -r 74560fdffd51 mx/commands.py --- a/mx/commands.py Fri Sep 07 17:11:09 2012 +0200 +++ b/mx/commands.py Fri Sep 07 17:11:40 2012 +0200 @@ -814,6 +814,26 @@ mx.log(' ' + str(t.duration) + '\t' + t.title) mx.log(' =======') mx.log(' ' + str(total.duration)) + +def deoptalot(args): + """Bootstrap a fastdebug Graal VM with DeoptimizeALot and VerifyOops on + + If the first argument is a number, the process will be repeated + this number of times. All other arguments are passed to the VM.""" + count = 1 + if len(args) > 0 and args[0].isdigit(): + count = int(args[0]) + del args[0] + + for n in range(count): + if not vm(['-XX:+DeoptimizeALot', '-XX:+VerifyOops'] + args + ['-version'], vmbuild='fastdebug') == 0: + mx.abort("Failed") + +def longtests(args): + + deoptalot(['15', '-Xmx48m']) + + dacapo(['100', 'eclipse', '-esa']) def gv(args): """run the Graal Visualizer""" @@ -1001,7 +1021,9 @@ 'site' : [site, '[-options]'], 'vm': [vm, '[-options] class [args...]'], 'vmg': [vmg, '[-options] class [args...]'], - 'vmfg': [vmfg, '[-options] class [args...]'] + 'vmfg': [vmfg, '[-options] class [args...]'], + 'deoptalot' : [deoptalot, '[n]'], + 'longtests' : [longtests, ''] } mx.add_argument('--jacoco', help='instruments com.oracle.* classes using JaCoCo', default='off', choices=['off', 'on', 'append'])