# HG changeset patch # User Christian Wimmer # Date 1395773431 25200 # Node ID bf51a92a1bdd09b3c6de943bfb39c6ebc151b941 # Parent 762c9aceb7d85a451fc743b6c6d963ca877ff1d3 Add new optional method parameter diff -r 762c9aceb7d8 -r bf51a92a1bdd mx/mx_graal.py --- a/mx/mx_graal.py Tue Mar 25 11:50:05 2014 -0700 +++ b/mx/mx_graal.py Tue Mar 25 11:50:31 2014 -0700 @@ -790,7 +790,7 @@ matches = lambda line: len([a for a in annotations if line == a or line.startswith(a + '(')]) != 0 return p.find_classes_with_matching_source_line(pkgRoot, matches, includeInnerClasses) -def _extract_VM_args(args, allowClasspath=False, useDoubleDash=False): +def _extract_VM_args(args, allowClasspath=False, useDoubleDash=False, defaultAllVMArgs=True): """ Partitions a command line into a leading sequence of HotSpot VM options and the rest. """ @@ -811,7 +811,10 @@ remainder = args[i:] return vmArgs, remainder - return args, [] + if defaultAllVMArgs: + return args, [] + else: + return [], args def _run_tests(args, harness, annotations, testfile):