Mercurial > hg > graal-jvmci-8
diff src/share/vm/graal/graalVMToCompiler.cpp @ 5018:bf63d72879aa
fixed an issue that prevented java.util.concurrent methods from being compiled
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Fri, 02 Mar 2012 16:44:36 -0800 |
parents | e0a4668c57a2 |
children | 5e9f38419819 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalVMToCompiler.cpp Thu Mar 01 15:18:32 2012 -0800 +++ b/src/share/vm/graal/graalVMToCompiler.cpp Fri Mar 02 16:44:36 2012 -0800 @@ -97,10 +97,10 @@ check_pending_exception("Error while calling setDefaultOptions"); } -void VMToCompiler::compileMethod(Handle hotspot_method, int entry_bci, jboolean blocking) { +jboolean VMToCompiler::compileMethod(Handle hotspot_method, int entry_bci, jboolean blocking) { assert(!hotspot_method.is_null(), "just checking"); Thread* THREAD = Thread::current(); - JavaValue result(T_VOID); + JavaValue result(T_BOOLEAN); JavaCallArguments args; args.push_oop(instance()); args.push_oop(hotspot_method); @@ -108,6 +108,7 @@ args.push_int(blocking); JavaCalls::call_interface(&result, vmExitsKlass(), vmSymbols::compileMethod_name(), vmSymbols::compileMethod_signature(), &args, THREAD); check_pending_exception("Error while calling compileMethod"); + return result.get_jboolean(); } void VMToCompiler::shutdownCompiler() {