Skip to content
Snippets Groups Projects
Commit f8abd62b authored by Mick Jordan's avatar Mick Jordan
Browse files

mx_fastr: add back modified version of sanitizeVmArgs; up date ci.hocon

parent 930df695
No related branches found
No related tags found
No related merge requests found
java7 : {name : oraclejdk, version : "7", platformspecific: true}
#java8 : {name : oraclejdk, version : "8u66", platformspecific: true}
java8 : {name : labsjdk, version : "8u92-jvmci-0.11", platformspecific: true}
java8 : {name : labsjdk, version : "8u92-jvmci-0.14", platformspecific: true}
common : {
packages : {
......
......@@ -94,10 +94,33 @@ def do_run_r(args, command, extraVmArgs=None, jdk=None, **kwargs):
if extraVmArgs:
vmArgs += extraVmArgs
vmArgs = _sanitize_vmArgs(jdk, vmArgs)
if command:
vmArgs.append(_command_class_dict[command.lower()])
return mx.run_java(vmArgs + args, jdk=jdk, **kwargs)
def _sanitize_vmArgs(jdk, vmArgs):
'''
jdk dependent analysis of vmArgs to remove those that are not appropriate for the
chosen jdk. It is easier to allow clients to set anything they want and filter them
out here.
'''
jvmci_jdk = jdk.tag == 'jvmci'
jvmci_disabled = '-XX:-EnableJVMCI' in vmArgs
xargs = []
i = 0
while i < len(vmArgs):
vmArg = vmArgs[i]
if vmArg != '-XX:-EnableJVMCI':
if 'graal' in vmArg or 'JVMCI' in vmArg:
if not jvmci_jdk or jvmci_disabled:
i = i + 1
continue
xargs.append(vmArg)
i = i + 1
return xargs
def _graal_options(nocompile=False):
if _mx_graal:
result = ['-Dgraal.InliningDepthError=500', '-Dgraal.EscapeAnalysisIterations=3', '-XX:JVMCINMethodSizeLimit=1000000']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment