comparison src/share/vm/compiler/compileBroker.cpp @ 16625:d2aa48d54db5

don't allow blocking compilation requests to Graal if Graal itself is not yet initialized
author Doug Simon <doug.simon@oracle.com>
date Wed, 30 Jul 2014 21:48:03 +0200
parents ce6696559683
children 9df38e5fbed6
comparison
equal deleted inserted replaced
16624:c9284d733aa1 16625:d2aa48d54db5
50 #include "c1/c1_Compiler.hpp" 50 #include "c1/c1_Compiler.hpp"
51 #endif 51 #endif
52 #ifdef GRAAL 52 #ifdef GRAAL
53 #include "graal/graalCompiler.hpp" 53 #include "graal/graalCompiler.hpp"
54 #ifdef COMPILERGRAAL 54 #ifdef COMPILERGRAAL
55 #include "graal/graalRuntime.hpp"
55 #include "runtime/vframe.hpp" 56 #include "runtime/vframe.hpp"
56 #endif 57 #endif
57 #endif 58 #endif
58 #ifdef COMPILER2 59 #ifdef COMPILER2
59 #include "opto/c2compiler.hpp" 60 #include "opto/c2compiler.hpp"
1201 for (; !vfst.at_end(); vfst.next()) { 1202 for (; !vfst.at_end(); vfst.next()) {
1202 if (vfst.method()->is_static_initializer()) { 1203 if (vfst.method()->is_static_initializer()) {
1203 blocking = false; 1204 blocking = false;
1204 break; 1205 break;
1205 } 1206 }
1207 }
1208
1209 // Don't allow blocking compilation requests to Graal
1210 // if Graal itself is not yet initialized
1211 if (!GraalRuntime::is_HotSpotGraalRuntime_initialized() && compiler(comp_level)->is_graal()) {
1212 blocking = false;
1206 } 1213 }
1207 } 1214 }
1208 // Don't allow blocking compiles 1215 // Don't allow blocking compiles
1209 #endif 1216 #endif
1210 1217