Print this page


Split Close
Expand all
Collapse all
          --- old/src/share/vm/runtime/advancedThresholdPolicy.hpp
          +++ new/src/share/vm/runtime/advancedThresholdPolicy.hpp
↓ open down ↓ 160 lines elided ↑ open up ↑
 161  161  class AdvancedThresholdPolicy : public SimpleThresholdPolicy {
 162  162    jlong _start_time;
 163  163  
 164  164    // Call and loop predicates determine whether a transition to a higher compilation
 165  165    // level should be performed (pointers to predicate functions are passed to common().
 166  166    // Predicates also take compiler load into account.
 167  167    typedef bool (AdvancedThresholdPolicy::*Predicate)(int i, int b, CompLevel cur_level);
 168  168    bool call_predicate(int i, int b, CompLevel cur_level);
 169  169    bool loop_predicate(int i, int b, CompLevel cur_level);
 170  170    // Common transition function. Given a predicate determines if a method should transition to another level.
 171      -  CompLevel common(Predicate p, methodOop method, CompLevel cur_level);
      171 +  CompLevel common(Predicate p, methodOop method, CompLevel cur_level, bool disable_feedback = false);
 172  172    // Transition functions.
 173  173    // call_event determines if a method should be compiled at a different
 174  174    // level with a regular invocation entry.
 175  175    CompLevel call_event(methodOop method, CompLevel cur_level);
 176  176    // loop_event checks if a method should be OSR compiled at a different
 177  177    // level.
 178  178    CompLevel loop_event(methodOop method, CompLevel cur_level);
 179  179    // Has a method been long around?
 180  180    // We don't remove old methods from the compile queue even if they have
 181  181    // very low activity (see select_task()).
↓ open down ↓ 47 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX