166 // Predicates also take compiler load into account. |
166 // Predicates also take compiler load into account. |
167 typedef bool (AdvancedThresholdPolicy::*Predicate)(int i, int b, CompLevel cur_level); |
167 typedef bool (AdvancedThresholdPolicy::*Predicate)(int i, int b, CompLevel cur_level); |
168 bool call_predicate(int i, int b, CompLevel cur_level); |
168 bool call_predicate(int i, int b, CompLevel cur_level); |
169 bool loop_predicate(int i, int b, CompLevel cur_level); |
169 bool loop_predicate(int i, int b, CompLevel cur_level); |
170 // Common transition function. Given a predicate determines if a method should transition to another level. |
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 // Transition functions. |
172 // Transition functions. |
173 // call_event determines if a method should be compiled at a different |
173 // call_event determines if a method should be compiled at a different |
174 // level with a regular invocation entry. |
174 // level with a regular invocation entry. |
175 CompLevel call_event(methodOop method, CompLevel cur_level); |
175 CompLevel call_event(methodOop method, CompLevel cur_level); |
176 // loop_event checks if a method should be OSR compiled at a different |
176 // loop_event checks if a method should be OSR compiled at a different |