Mercurial > hg > graal-jvmci-8
changeset 21586:6da76343d830
Merge.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Fri, 29 May 2015 12:09:07 +0200 |
parents | 453284d62d64 (current diff) 9bb04af58490 (diff) |
children | 772d5126b796 |
files | env |
diffstat | 4 files changed, 12 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/env Fri May 29 10:52:21 2015 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -DEFAULT_VM=server - -LANG=en_US.UTF-8 - -USE_PRECOMPILED_HEADER=0 - -# Use clang instead of gcc. -COMPILER_WARNINGS_FATAL=false -USE_CLANG=true -LFLAGS=-Xlinker -lstdc++ - -# Which JDK to use for javac (and others). -JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home - -EXTRA_JAVA_HOMES=/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home
--- a/mx/mx_graal.py Fri May 29 10:52:21 2015 +0200 +++ b/mx/mx_graal.py Fri May 29 12:09:07 2015 +0200 @@ -53,7 +53,7 @@ 'server-nojvmci' : None, # all compilation with tiered system (i.e., client + server), JVMCI omitted 'client-nojvmci' : None, # all compilation with client compiler, JVMCI omitted 'original' : None, # default VM copied from bootstrap JDK - 'graal' : 'Alias for jvmci', + 'graal' : None, # alias for jvmci } """ The VM that will be run by the 'vm' command and built by default by the 'build' command. @@ -118,10 +118,16 @@ if _vm: return _vm vm = mx.get_env('DEFAULT_VM') + envPath = join(_graal_home, 'mx', 'env') + if vm == 'graal': + if exists(envPath): + with open(envPath) as fp: + if 'DEFAULT_VM=graal' in fp.read(): + mx.log('Please update the DEFAULT_VM entry in ' + envPath + ' to use "jvmti" instead of "graal" as the value') + vm = 'jvmci' if vm is None: if not mx.is_interactive(): mx.abort('Need to specify VM with --vm option or DEFAULT_VM environment variable') - envPath = join(_graal_home, 'mx', 'env') mx.log('Please select the VM to be executed from the following: ') items = [k for k in _vmChoices.keys() if _vmChoices[k] is not None] descriptions = [_vmChoices[k] for k in _vmChoices.keys() if _vmChoices[k] is not None]
--- a/src/share/vm/jvmci/jvmciOptions.cpp Fri May 29 10:52:21 2015 +0200 +++ b/src/share/vm/jvmci/jvmciOptions.cpp Fri May 29 12:09:07 2015 +0200 @@ -111,6 +111,9 @@ class FreeNamesClosure : public ValueClosure<OptionDesc> { void do_value(OptionDesc* desc) { + if (desc->declaringClass == NULL) { + return; //skip pseudo-options whose name is not allocated with malloc + } FREE_C_HEAP_ARRAY(char, desc->name, mtCompiler); } };