RFR(M): 8007288: Additional WB API for compiler's testing

Igor Ignatyev igor.ignatyev at oracle.com
Thu Mar 28 14:41:05 PDT 2013

Hi all,

Please review the patch.

1. added new functions to WhiteBox:
   public native boolean setForceInlineMethod(Method method, boolean value);
   public native boolean enqueueMethodForCompilation(Method method, int 
   public native void    clearMethodState(Method method);
2. related changes in not whitebox code:
   - added 'Method::clear_not_*_compilable()' and corresponded 
   - added 'MethodData::init()' - reset method data into original state. 
reset all counters, flags
3. removed useless code:
   - 'if (!TieredCompilation) { comp_level = CompLevel_highest_tier; }' 
in CompileBroker::compile_method() -- there is no method calls w/ 
comp_level != CompLevel_highest_tier in non-tiered
   - 'MethodData::initialize(methodHandle method)' -- declaration w/o 
4. added tests for new WB functions

webrev: http://cr.openjdk.java.net/~iignatyev/8007288/webrev.00/
jbs: https://jbs.oracle.com/bugs/browse/JDK-8007288
Best regards,
Igor Ignatyev

More information about the hotspot-compiler-dev mailing list