equal
deleted
inserted
replaced
1050 assert(WhiteBoxAPI || TieredCompilation || comp_level == CompLevel_highest_tier, "only CompLevel_highest_tier must be used in non-tiered"); |
1050 assert(WhiteBoxAPI || TieredCompilation || comp_level == CompLevel_highest_tier, "only CompLevel_highest_tier must be used in non-tiered"); |
1051 // return quickly if possible |
1051 // return quickly if possible |
1052 |
1052 |
1053 // lock, make sure that the compilation |
1053 // lock, make sure that the compilation |
1054 // isn't prohibited in a straightforward way. |
1054 // isn't prohibited in a straightforward way. |
1055 AbstractCompiler *comp = CompileBroker::compiler(comp_level); |
1055 AbstractCompiler* comp = CompileBroker::compiler(comp_level); |
1056 if (!comp->can_compile_method(method) || |
1056 if (comp == NULL || !comp->can_compile_method(method) || |
1057 compilation_is_prohibited(method, osr_bci, comp_level, directive->ExcludeOption)) { |
1057 compilation_is_prohibited(method, osr_bci, comp_level, directive->ExcludeOption)) { |
1058 return NULL; |
1058 return NULL; |
1059 } |
1059 } |
1060 |
1060 |
1061 #if INCLUDE_JVMCI |
1061 #if INCLUDE_JVMCI |