comparison src/share/vm/runtime/advancedThresholdPolicy.hpp @ 3837:43f9d800f276

7066339: Tiered: policy should make consistent decisions about osr levels Summary: Added feedback disabling flag to common(), fixed handling of TieredStopAtLevel. Reviewed-by: kvn, never
author iveresov
date Wed, 20 Jul 2011 18:04:17 -0700
parents 2c359f27615c
children 20334ed5ed3c
comparison
equal deleted inserted replaced
3808:341a57af9b0a 3837:43f9d800f276
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