equal
deleted
inserted
replaced
639 return result; |
639 return result; |
640 WB_END |
640 WB_END |
641 |
641 |
642 bool WhiteBox::compile_method(Method* method, int comp_level, int bci, Thread* THREAD) { |
642 bool WhiteBox::compile_method(Method* method, int comp_level, int bci, Thread* THREAD) { |
643 // Screen for unavailable/bad comp level or null method |
643 // Screen for unavailable/bad comp level or null method |
644 if (method == NULL || CompileBroker::compiler(comp_level) == NULL) { |
644 if (method == NULL || comp_level > TieredStopAtLevel || |
|
645 CompileBroker::compiler(comp_level) == NULL) { |
645 return false; |
646 return false; |
646 } |
647 } |
647 methodHandle mh(THREAD, method); |
648 methodHandle mh(THREAD, method); |
648 nmethod* nm = CompileBroker::compile_method(mh, bci, comp_level, mh, mh->invocation_count(), "WhiteBox", THREAD); |
649 nmethod* nm = CompileBroker::compile_method(mh, bci, comp_level, mh, mh->invocation_count(), "WhiteBox", THREAD); |
649 MutexLockerEx mu(Compile_lock); |
650 MutexLockerEx mu(Compile_lock); |