equal
deleted
inserted
replaced
763 return result; |
763 return result; |
764 WB_END |
764 WB_END |
765 |
765 |
766 bool WhiteBox::compile_method(Method* method, int comp_level, int bci, Thread* THREAD) { |
766 bool WhiteBox::compile_method(Method* method, int comp_level, int bci, Thread* THREAD) { |
767 // Screen for unavailable/bad comp level or null method |
767 // Screen for unavailable/bad comp level or null method |
768 if (method == NULL || comp_level > TieredStopAtLevel || |
768 if (method == NULL || comp_level > MIN2((CompLevel) TieredStopAtLevel, CompLevel_highest_tier) || |
769 CompileBroker::compiler(comp_level) == NULL) { |
769 CompileBroker::compiler(comp_level) == NULL) { |
770 return false; |
770 return false; |
771 } |
771 } |
772 methodHandle mh(THREAD, method); |
772 methodHandle mh(THREAD, method); |
773 nmethod* nm = CompileBroker::compile_method(mh, bci, comp_level, mh, mh->invocation_count(), CompileTask::Reason_Whitebox, THREAD); |
773 nmethod* nm = CompileBroker::compile_method(mh, bci, comp_level, mh, mh->invocation_count(), CompileTask::Reason_Whitebox, THREAD); |