Mercurial > hg > graal-jvmci-8
comparison src/share/vm/graal/graalCompiler.cpp @ 13089:77fbf02f701c
re-enabled protection against recursive Graal compilation requests with Graal specific _graal_compiling field in JavaThread
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 20 Nov 2013 19:27:49 +0100 |
parents | 096c224171c4 |
children | b65b34c524cb |
comparison
equal
deleted
inserted
replaced
13088:514e809bd97d | 13089:77fbf02f701c |
---|---|
178 return; | 178 return; |
179 } | 179 } |
180 | 180 |
181 assert(_initialized, "must already be initialized"); | 181 assert(_initialized, "must already be initialized"); |
182 ResourceMark rm; | 182 ResourceMark rm; |
183 thread->set_is_graal_compiling(true); | |
183 Handle holder = GraalCompiler::createHotSpotResolvedObjectType(method, CHECK); | 184 Handle holder = GraalCompiler::createHotSpotResolvedObjectType(method, CHECK); |
184 VMToCompiler::compileMethod(method(), holder, entry_bci, blocking); | 185 VMToCompiler::compileMethod(method(), holder, entry_bci, blocking); |
186 thread->set_is_graal_compiling(false); | |
185 } | 187 } |
186 | 188 |
187 // Compilation entry point for methods | 189 // Compilation entry point for methods |
188 void GraalCompiler::compile_method(ciEnv* env, ciMethod* target, int entry_bci) { | 190 void GraalCompiler::compile_method(ciEnv* env, ciMethod* target, int entry_bci) { |
189 ShouldNotReachHere(); | 191 ShouldNotReachHere(); |