hotspot/src/share/vm/prims/whitebox.cpp
changeset 38036 f51b942d970c
parent 38033 996ce936543f
child 38133 78b95467b9f1
child 38057 1eba14626850
equal deleted inserted replaced
38035:a6105022c551 38036:f51b942d970c
   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);