172 // Common transition function. Given a predicate determines if a method should transition to another level. |
172 // Common transition function. Given a predicate determines if a method should transition to another level. |
173 CompLevel common(Predicate p, Method* method, CompLevel cur_level, bool disable_feedback = false); |
173 CompLevel common(Predicate p, Method* method, CompLevel cur_level, bool disable_feedback = false); |
174 // Transition functions. |
174 // Transition functions. |
175 // call_event determines if a method should be compiled at a different |
175 // call_event determines if a method should be compiled at a different |
176 // level with a regular invocation entry. |
176 // level with a regular invocation entry. |
177 CompLevel call_event(Method* method, CompLevel cur_level); |
177 CompLevel call_event(Method* method, CompLevel cur_level, JavaThread * thread); |
178 // loop_event checks if a method should be OSR compiled at a different |
178 // loop_event checks if a method should be OSR compiled at a different |
179 // level. |
179 // level. |
180 CompLevel loop_event(Method* method, CompLevel cur_level); |
180 CompLevel loop_event(Method* method, CompLevel cur_level, JavaThread * thread); |
181 // Has a method been long around? |
181 // Has a method been long around? |
182 // We don't remove old methods from the compile queue even if they have |
182 // We don't remove old methods from the compile queue even if they have |
183 // very low activity (see select_task()). |
183 // very low activity (see select_task()). |
184 inline bool is_old(Method* method); |
184 inline bool is_old(Method* method); |
185 // Was a given method inactive for a given number of milliseconds. |
185 // Was a given method inactive for a given number of milliseconds. |