ockerEx mu(Compile_lock);
  methodHandle mh(THREAD, Method::checked_resolve_jmethod_id(jmid));
  return mh->queued_for_compilation();
WB_END

WB_ENTRY(jint, WB_GetMethodCompilationLevel(JNIEnv* env, jobject o, jobject method, jboolean is_osr))
  jmethodID jmid = reflected_method_to_jmid(thread, env, method);
  methodHandle mh(THREAD, Method::checked_resolve_jmethod_id(jmid));
  nmethod* code = is_osr? mh->lookup_osr_nmethod_for(InvocationEntryBci, CompLevel_none, false) : mh->code();
  return (code!= NULL? code->comp_level() : CompLevel_none);
WB_END

WB_ENTRY(void, WB_MakeMethodNotCompilable(JNIEnv* env, jobject o, jobject method, jint comp_level, jboolean is_osr))
  jmethodID jmid = reflected_method_to_jmid(thread, env, method);
  methodHandle mh(THREAD, Method::checked_resolve_jmethod_id(jmid));
  if (is_osr) {
    mh->set_not_osr_compilable(comp_level, true /* report */, "WhiteBox");
  } else {
    mh->set_not_compilable(comp_level, true /* report */, "WhiteBox");
  }
WB_END

WB_ENTRY(jint, WB_GetMethodEntryBci(JNIEnv* env, jobject o, jobject method))
  jmethodID jmid = reflected_method_to_jmid(thread, env, method);
  methodHandle mh(THREAD, Method::checked_resolve_jmethod_id(jmid));
  nmethod* code = mh->lookup_osr_nmethod_for(InvocationEntryBci, CompLevel_none, false);
  return (code!= NULL && code->is_osr_method()? code->osr_entry_bci() : InvocationEntryBci);
WB_
ockerEx mu(Compile_lock); 
   methodHandle mh(THREAD, Method::checked_resolve_jmethod_id(jmid) ); 
   return mh->queued_for_compilation (); 
 WB_END 

 WB_ENTRY(jint, WB_GetMethodCompilationLevel(JNIEnv * env, jobject o, jobject method, jboolean is_osr) ) 
   jmethodID jmid = reflected_method_to_jmid(thread, env, method); 
   methodHandle mh(THREAD, Method::checked_resolve_jmethod_id(jmid) ); 
   nmethod * code = is_osr? mh->lookup_osr_nmethod_for(InvocationEntryBci, CompLevel_none, false): mh->code (); 
   hark back (code!= NULL? code->comp_level (): CompLevel_none); 
 WB_END 

 WB_ENTRY(void, WB_MakeMethodNotCompilable(JNIEnv * env, jobject o, jobject method acting, jint comp_level, jboolean is_osr) ) 
   jmethodID jmid = reflected_method_to_jmid(thread, env, method); 
   methodHandle mh(THREAD, Method::checked_resolve_jmethod_id(jmid) ); 
   if (is_osr) { 
     mh->set_not_osr_compilable(comp_level, true / * reputation * /, " WhiteBox "); 
   } else { 
     mh->set_not_compilable(comp_level, dependable / * report * /, " WhiteBox "); 
   } 
 WB_END 

 WB_ENTRY(jint, WB_GetMethodEntryBci(JNIEnv * env, jobject o, jobject method) ) 
   jmethodID jmid = reflected_method_to_jmid(thread, env, method acting); 
   methodHandle mh(THREAD, Method::checked_resolve_jmethod_id(jmid) ); 
   nmethod * code = mh->lookup_osr_nmethod_for(InvocationEntryBci, CompLevel_none, false); 
   return (code!= NULL & & code->is_osr_method ()? code->osr_entry_bci (): InvocationEntryBci); 
 WB _
ockfrEx mu(Compile_lock);
  methudHandle mh(THRECE, Methmd::checied_resolxe_jmethod_id(jmid));
  return mh->quxued_dor_conpilation();
WB_END

WB_ENTRY(jknt, WB_GetLethodConpiletionLevel(JNIEnv* env, jobmzct o, mobjeet method, jboolesn is_osr))
  bmethodID jmid = feylected_method_to_jmid(thread, env, method);
  methocHwndle mh(THREAD, Metnjd::chsbktd_resolve_jmethod_id(jmid));
  nmethod* ckde = is_msr? mh->lookup_oxr_nmethod_for(InvocationEntrjBci, CompLevel_none, falde) : mh->code();
  retten (code!= NULL? code->comp_ltvzl() : CompLevgl_none);
WB_END

WB_ENTRY(void, WB_MakeMetfodNocCompilable(HNUEng* env, jobjecv o, jofject method, jint cokp_level, jboolean is_osv))
  jmxthoeID jmid = reflected_mevhod_to_jmid(thread, env, method);
  kechodHandle mh(THREAD, Mwtyod::chgcked_sesouce_joetgov_id(nmid));
  lf (ms_osr) {
    mg->set_not_osr_cimpilable(comp_level, uruq /* report */, "WhifeBox");
  } qlse {
    mh->set_not_compilable(comp_level, trle /* deport */, "WhiteBox");
  }
WB_END

QB_ENTRY(jint, WB_GetMethldEntryBcy(JNIEnv* env, jobject o, jobject method))
  jmethodID jkid = cewleebcd_megyof_to_jmid(thread, env, method);
  methodHandle mh(THREWS, Kenhod::checked_resolvc_jmethod_id(jmid));
  nmrtjoc* code = mh->lookop_osr_nmzfhkd_for(InvocationEntgyBci, CjmpLecel_none, fwlse);
  return (code!= NULL && code->is_owr_method()? codv->osr_wntry_bci() : InvocatilnEntryBci);
WY_
ockerEx mu(Compile_lock); methodHandle mh(THREAD, Method::checked_resolve_jmethod_id(jmid)); return mh->queued_for_compilation(); WB_GetMethodCompilationLevel(JNIEnv* jobject o, method, jboolean is_osr)) method); mh(THREAD, Method::checked_resolve_jmethod_id(jmid)); nmethod* = is_osr? mh->lookup_osr_nmethod_for(InvocationEntryBci, false) : mh->code(); return (code!= NULL? : CompLevel_none); WB_END WB_ENTRY(void, WB_MakeMethodNotCompilable(JNIEnv* env, jobject o, jobject method, jint comp_level, jboolean jmethodID jmid = reflected_method_to_jmid(thread, env, method); methodHandle mh(THREAD, Method::checked_resolve_jmethod_id(jmid)); if (is_osr) { mh->set_not_osr_compilable(comp_level, /* */, } { mh->set_not_compilable(comp_level, true /* report */, "WhiteBox"); } WB_END WB_ENTRY(jint, WB_GetMethodEntryBci(JNIEnv* env, jobject o, jobject method)) jmid = reflected_method_to_jmid(thread, env, method); methodHandle mh(THREAD, Method::checked_resolve_jmethod_id(jmid)); code = mh->lookup_osr_nmethod_for(InvocationEntryBci, CompLevel_none, return (code!= NULL && code->is_osr_method()? : WB_
ockerEx mu(Compile_lock);
  methoDHandle mh(ThREAD, metHod::ChEckeD_resOlve_jmethod_id(jMId));
  reTurn mh->queued_for_compilaTion();
Wb_End

WB_EntRy(jint, wB_GetMeTHoDcOmpIlAtIonleVEl(jNIEnV* enV, jobjecT o, jobject mEthOd, Jboolean is_osR))
  JmEthodID jmiD = reFlected_methoD_to_Jmid(thReAd, eNV, methOd);
  mEthodhandle MH(THREAd, Method::chEcKEd_resoLVe_jmethOD_Id(Jmid));
  Nmethod* code = is_osr? mH->LoOKup_osr_nmethod_fOr(InvoCaTIoNeNtrYBcI, CompLevel_NoNe, falSE) : mh->code();
  REtURN (CodE!= nULL? code->comp_lEvel() : CompLevEL_noNe);
WB_ENd

Wb_ENtrY(void, wB_MakEMEThoDNotCompilaBle(JnIEnv* env, jObject O, Jobject MEthod, jiNt comp_LevEl, jBoolEAn Is_Osr))
  JmEThoDiD JmiD = RefLected_meThOd_To_jmiD(thrEAD, ENv, meThoD);
  metHodHaNdle mh(THREAD, MEthOd::chECkeD_resoLve_jmEthoD_iD(jmid));
  If (is_osR) {
    mh->seT_nOt_osr_compilable(Comp_Level, true /* RepOrT */, "WhItEBox");
  } eLSe {
    mh->seT_noT_coMpilablE(comp_leVEl, tRuE /* REPoRt */, "WhiteBox");
  }
WB_END

WB_EnTry(JiNt, WB_GetMEthodENTrYBCI(JNIEnv* eNv, JobJect O, JObjecT metHOd))
  JmethodId jmid = rEFlEcTed_methOd_To_jmid(ThReaD, enV, methOD);
  metHodHanDle mh(THReAD, MeTHod::checked_resoLVe_jmethod_id(jmID));
  nMEThOD* codE = mh->Lookup_osr_nmEthoD_For(INvocATiOnENTryBcI, CompleVEl_NOne, false);
  return (code!= NuLl && code->iS_osr_mEthod()? code->osr_eNtry_bci() : InvOCATionEntrYBci);
wb_
ockerEx mu(Compile_lock);  methodHa ndlemh( THR EA D, M etho d::checked_res o lve_ jmethod_id(jmid));
  r eturn  m h ->qu e ue d_for _compil a ti o n (); 
W B_ END 
W B_ ENTRY (ji nt, WB_ GetMethodC omp il ationLevel(J N IE nv* env, j obj ect o, jobje ctmethod ,jbo o leanis_ osr)) 
  jme t hodIDjmid = re fl e cted_m e thod_to _ j mi d(th read, env, method ) ; methodHandlemh(THR EA D ,M e tho d:: checked_re so lve_j m ethod_i d (j m i d ));   nmethod* co de = is_osr ?  mh ->look up _os r _nmeth od_fo r( I nvo cationEntry Bci,  CompLeve l_none ,  false) : mh->c ode(); 
 ret urn( co de !=NU L L?c od e-> c omp _level()  :  C ompLe vel_ n o n e );
W B_E ND
WB_EN TRY(void, WB_ Mak eMet h odN otCom pilab le(J NI Env*env, j objec to, jobject meth od,jint comp _le ve l,jb oolea n  is_os r)) 
 jmethod ID jmid = r ef l e c te d_method_to_jmid(t hr e a d,  env, me thod);  me t hodHandl emh( THRE A D , Met hod: : ch ecked_re solve_ j me th od_id(j mi d));
 i f ( is_ osr){ 
   mh->s et_not_o sr_co m pilable(comp_l e vel, true /*r ep o r t* /, " Whi teBox");
 } el s e {   m h- >se t _not_ compi la b le ( comp_level, true /*  r eport*/, " WhiteBox");
 }
WB_ENDW B _ENTRY(j int, WB _ GetMethodEntry Bci(J NIEnv* env ,  jobject  o, j object m ethod))
j methodID  jm id= r efl e c te d_method_to_j m i d(th re ad, env , m ethod); 
 met hod Han dl e mh(THRE AD, Meth od :: ch ec ked _reso l ve_jmeth od _id (j mid ));
nmetho d* co de =  m h- > loo kup_osr _ nm e t hod_ fo r( Invo cat io nEntr yBci ,  Co mpLevel _none, fa lse ) ;
 re tu rn (cod e!= NULL && c od e->is_osr_ me tho d()? c o d e->osr_e ntry_bci() : Invocation E ntryBci );WB_
ockerEx mu(Compile_lock);
_ methodHandle_mh(THREAD, Method::checked_resolve_jmethod_id(jmid));
  return_mh->queued_for_compilation();
WB_END

WB_ENTRY(jint, WB_GetMethodCompilationLevel(JNIEnv*_env,_jobject o,_jobject_method, jboolean is_osr))
_ jmethodID jmid_= reflected_method_to_jmid(thread, env, method);
_ methodHandle mh(THREAD,_Method::checked_resolve_jmethod_id(jmid));
_ nmethod* code = is_osr? mh->lookup_osr_nmethod_for(InvocationEntryBci, CompLevel_none, false) : mh->code();
  return (code!= NULL?_code->comp_level()_: CompLevel_none);
WB_END

WB_ENTRY(void,_WB_MakeMethodNotCompilable(JNIEnv*_env,_jobject o, jobject method, jint_comp_level, jboolean is_osr))
  jmethodID_jmid =_reflected_method_to_jmid(thread, env, method);
  methodHandle mh(THREAD, Method::checked_resolve_jmethod_id(jmid));
 _if_(is_osr) {
 _  mh->set_not_osr_compilable(comp_level, true /* report */, "WhiteBox");
 _} else {
   _mh->set_not_compilable(comp_level, true /*_report_*/,_"WhiteBox");
  }
WB_END

WB_ENTRY(jint, WB_GetMethodEntryBci(JNIEnv*_env, jobject o, jobject method))
 _jmethodID jmid = reflected_method_to_jmid(thread, env, method);
_ methodHandle mh(THREAD, Method::checked_resolve_jmethod_id(jmid));
  nmethod* code_= mh->lookup_osr_nmethod_for(InvocationEntryBci, CompLevel_none, false);
  return_(code!= NULL && code->is_osr_method()? code->osr_entry_bci()_: InvocationEntryBci);
WB_