hotspot/src/share/vm/prims/whitebox.cpp
changeset 43473 3beee3e324cf
parent 43466 add500644443
child 45628 ea212c4584d7
child 46289 1904e7ec236e
equal deleted inserted replaced
43472:657435e2b052 43473:3beee3e324cf
   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);