Mercurial > hg > graal-jvmci-8
diff src/share/vm/graal/graalVMToCompiler.cpp @ 15059:4df6d7c966a2
fixed performance regression in hosted mode execution caused by 5e6f29f287d6
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 10 Apr 2014 17:48:23 +0200 |
parents | db4254246f9a |
children | 6876a4599b7e |
line wrap: on
line diff
--- a/src/share/vm/graal/graalVMToCompiler.cpp Thu Apr 10 16:52:02 2014 +0200 +++ b/src/share/vm/graal/graalVMToCompiler.cpp Thu Apr 10 17:48:23 2014 +0200 @@ -144,13 +144,15 @@ } } -void VMToCompiler::startCompiler(jboolean bootstrap_enabled) { +void VMToCompiler::startCompiler(jboolean bootstrap_enabled, jboolean hosted_only) { JavaThread* THREAD = JavaThread::current(); JavaValue result(T_VOID); JavaCallArguments args; args.push_oop(instance()); args.push_int(bootstrap_enabled); - JavaCalls::call_interface(&result, vmToCompilerKlass(), vmSymbols::startCompiler_name(), vmSymbols::bool_void_signature(), &args, THREAD); + args.push_int(hosted_only); + TempNewSymbol bool_bool_void = SymbolTable::new_symbol("(ZZ)V", CHECK); + JavaCalls::call_interface(&result, vmToCompilerKlass(), vmSymbols::startCompiler_name(), bool_bool_void, &args, THREAD); check_pending_exception("Error while calling startCompiler"); }