209 |
209 |
210 // Submit a given method for compilation (and update the rate). |
210 // Submit a given method for compilation (and update the rate). |
211 virtual void submit_compile(methodHandle mh, int bci, CompLevel level, TRAPS); |
211 virtual void submit_compile(methodHandle mh, int bci, CompLevel level, TRAPS); |
212 // event() from SimpleThresholdPolicy would call these. |
212 // event() from SimpleThresholdPolicy would call these. |
213 virtual void method_invocation_event(methodHandle method, methodHandle inlinee, |
213 virtual void method_invocation_event(methodHandle method, methodHandle inlinee, |
214 CompLevel level, TRAPS); |
214 CompLevel level, nmethod* nm, TRAPS); |
215 virtual void method_back_branch_event(methodHandle method, methodHandle inlinee, |
215 virtual void method_back_branch_event(methodHandle method, methodHandle inlinee, |
216 int bci, CompLevel level, TRAPS); |
216 int bci, CompLevel level, nmethod* nm, TRAPS); |
217 public: |
217 public: |
218 AdvancedThresholdPolicy() : _start_time(0) { } |
218 AdvancedThresholdPolicy() : _start_time(0) { } |
219 // Select task is called by CompileBroker. We should return a task or NULL. |
219 // Select task is called by CompileBroker. We should return a task or NULL. |
220 virtual CompileTask* select_task(CompileQueue* compile_queue); |
220 virtual CompileTask* select_task(CompileQueue* compile_queue); |
221 virtual void initialize(); |
221 virtual void initialize(); |
|
222 virtual bool should_not_inline(ciEnv* env, ciMethod* callee); |
|
223 |
222 }; |
224 }; |
223 |
225 |
224 #endif // TIERED |
226 #endif // TIERED |
225 |
227 |
226 #endif // SHARE_VM_RUNTIME_ADVANCEDTHRESHOLDPOLICY_HPP |
228 #endif // SHARE_VM_RUNTIME_ADVANCEDTHRESHOLDPOLICY_HPP |