Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalCompiler.cpp @ 7094:eec7173947a1
removed remaining use of the C++ "compiler interface" (i.e. ci) by Graal for installing dependencies
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 29 Nov 2012 17:13:13 +0100 |
parents | 9ba90252ce08 |
children | 1c76a458616e |
comparison
equal
deleted
inserted
replaced
7093:dff79b1f82f1 | 7094:eec7173947a1 |
---|---|
159 return; | 159 return; |
160 } | 160 } |
161 | 161 |
162 assert(_initialized, "must already be initialized"); | 162 assert(_initialized, "must already be initialized"); |
163 ResourceMark rm; | 163 ResourceMark rm; |
164 ciEnv* current_env = JavaThread::current()->env(); | 164 assert(JavaThread::current()->env() == NULL, "ciEnv should be null"); |
165 JavaThread::current()->set_env(NULL); | |
166 JavaThread::current()->set_compiling(true); | 165 JavaThread::current()->set_compiling(true); |
167 Handle holder = GraalCompiler::createHotSpotResolvedObjectType(method, CHECK); | 166 Handle holder = GraalCompiler::createHotSpotResolvedObjectType(method, CHECK); |
168 jboolean success = VMToCompiler::compileMethod(method(), holder, entry_bci, blocking, method->graal_priority()); | 167 jboolean success = VMToCompiler::compileMethod(method(), holder, entry_bci, blocking, method->graal_priority()); |
169 JavaThread::current()->set_compiling(false); | 168 JavaThread::current()->set_compiling(false); |
170 JavaThread::current()->set_env(current_env); | |
171 if (success != JNI_TRUE) { | 169 if (success != JNI_TRUE) { |
172 method->clear_queued_for_compilation(); | 170 method->clear_queued_for_compilation(); |
173 CompilationPolicy::policy()->delay_compilation(method()); | 171 CompilationPolicy::policy()->delay_compilation(method()); |
174 } | 172 } |
175 } | 173 } |