Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
15058:895e9ecedfe8 | 15059:4df6d7c966a2 |
---|---|
142 _vmToCompilerPermObject = NULL; | 142 _vmToCompilerPermObject = NULL; |
143 _vmToCompilerPermKlass = NULL; | 143 _vmToCompilerPermKlass = NULL; |
144 } | 144 } |
145 } | 145 } |
146 | 146 |
147 void VMToCompiler::startCompiler(jboolean bootstrap_enabled) { | 147 void VMToCompiler::startCompiler(jboolean bootstrap_enabled, jboolean hosted_only) { |
148 JavaThread* THREAD = JavaThread::current(); | 148 JavaThread* THREAD = JavaThread::current(); |
149 JavaValue result(T_VOID); | 149 JavaValue result(T_VOID); |
150 JavaCallArguments args; | 150 JavaCallArguments args; |
151 args.push_oop(instance()); | 151 args.push_oop(instance()); |
152 args.push_int(bootstrap_enabled); | 152 args.push_int(bootstrap_enabled); |
153 JavaCalls::call_interface(&result, vmToCompilerKlass(), vmSymbols::startCompiler_name(), vmSymbols::bool_void_signature(), &args, THREAD); | 153 args.push_int(hosted_only); |
154 TempNewSymbol bool_bool_void = SymbolTable::new_symbol("(ZZ)V", CHECK); | |
155 JavaCalls::call_interface(&result, vmToCompilerKlass(), vmSymbols::startCompiler_name(), bool_bool_void, &args, THREAD); | |
154 check_pending_exception("Error while calling startCompiler"); | 156 check_pending_exception("Error while calling startCompiler"); |
155 } | 157 } |
156 | 158 |
157 void VMToCompiler::bootstrap() { | 159 void VMToCompiler::bootstrap() { |
158 JavaThread* THREAD = JavaThread::current(); | 160 JavaThread* THREAD = JavaThread::current(); |