Mercurial > hg > graal-compiler
comparison mx.graal/mx_graal.py @ 22503:c74d7f8a8ee6
Use Java based CTW command
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Mon, 24 Aug 2015 23:50:37 -0700 |
parents | c9410ab830e0 |
children | fadc7a67e4a7 |
comparison
equal
deleted
inserted
replaced
22502:fc47a1b49528 | 22503:c74d7f8a8ee6 |
---|---|
198 jar = os.path.abspath(args.jar) | 198 jar = os.path.abspath(args.jar) |
199 else: | 199 else: |
200 jar = join(get_jvmci_jdk(installJars=False), 'jre', 'lib', 'rt.jar') | 200 jar = join(get_jvmci_jdk(installJars=False), 'jre', 'lib', 'rt.jar') |
201 vmargs.append('-G:CompileTheWorldExcludeMethodFilter=sun.awt.X11.*.*') | 201 vmargs.append('-G:CompileTheWorldExcludeMethodFilter=sun.awt.X11.*.*') |
202 | 202 |
203 vmargs += ['-XX:+CompileTheWorld'] | 203 # suppress menubar and dock when running on Mac; exclude x11 classes as they may cause vm crashes (on Solaris) |
204 vmargs = ['-Djava.awt.headless=true'] + vmargs | |
205 | |
204 vm_ = get_vm() | 206 vm_ = get_vm() |
205 if isJVMCIEnabled(vm_): | 207 if isJVMCIEnabled(vm_): |
206 if vm_ == 'jvmci': | 208 if vm_ == 'jvmci': |
207 vmargs += ['-XX:+BootstrapJVMCI'] | 209 vmargs += ['-XX:+BootstrapJVMCI'] |
208 vmargs += ['-G:CompileTheWorldClasspath=' + jar] | 210 vmargs += ['-G:CompileTheWorldClasspath=' + jar, '-XX:-UseJVMCIClassLoader', 'jdk.internal.jvmci.hotspot.CompileTheWorldMain'] |
209 else: | 211 else: |
210 vmargs += ['-Xbootclasspath/p:' + jar] | 212 vmargs += ['-XX:+CompileTheWorld', '-Xbootclasspath/p:' + jar] |
211 | |
212 # suppress menubar and dock when running on Mac; exclude x11 classes as they may cause vm crashes (on Solaris) | |
213 vmargs = ['-Djava.awt.headless=true'] + vmargs | |
214 | 213 |
215 vm(vmargs) | 214 vm(vmargs) |
216 | 215 |
217 class UnitTestRun: | 216 class UnitTestRun: |
218 def __init__(self, name, args): | 217 def __init__(self, name, args): |