hotspot/src/share/vm/compiler/compileBroker.cpp
changeset 16689 efce070b8d42
parent 16611 6807a703dd6b
child 17016 78b1c3670525
equal deleted inserted replaced
16688:c5d0a0a90f37 16689:efce070b8d42
  1204   // make sure arguments make sense
  1204   // make sure arguments make sense
  1205   assert(method->method_holder()->oop_is_instance(), "not an instance method");
  1205   assert(method->method_holder()->oop_is_instance(), "not an instance method");
  1206   assert(osr_bci == InvocationEntryBci || (0 <= osr_bci && osr_bci < method->code_size()), "bci out of range");
  1206   assert(osr_bci == InvocationEntryBci || (0 <= osr_bci && osr_bci < method->code_size()), "bci out of range");
  1207   assert(!method->is_abstract() && (osr_bci == InvocationEntryBci || !method->is_native()), "cannot compile abstract/native methods");
  1207   assert(!method->is_abstract() && (osr_bci == InvocationEntryBci || !method->is_native()), "cannot compile abstract/native methods");
  1208   assert(!method->method_holder()->is_not_initialized(), "method holder must be initialized");
  1208   assert(!method->method_holder()->is_not_initialized(), "method holder must be initialized");
  1209 
  1209   // allow any levels for WhiteBox
  1210   if (!TieredCompilation) {
  1210   assert(WhiteBoxAPI || TieredCompilation || comp_level == CompLevel_highest_tier, "only CompLevel_highest_tier must be used in non-tiered");
  1211     comp_level = CompLevel_highest_tier;
       
  1212   }
       
  1213 
       
  1214   // return quickly if possible
  1211   // return quickly if possible
  1215 
  1212 
  1216   // lock, make sure that the compilation
  1213   // lock, make sure that the compilation
  1217   // isn't prohibited in a straightforward way.
  1214   // isn't prohibited in a straightforward way.
  1218   AbstractCompiler *comp = CompileBroker::compiler(comp_level);
  1215   AbstractCompiler *comp = CompileBroker::compiler(comp_level);