Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/advancedThresholdPolicy.hpp @ 3791:2c359f27615c
7057120: Tiered: Allow C1 to inline methods with loops
Summary: Recompile the enclosing methods without inlining of the method that has OSRed to level 4 or recompile the enclosing method at level 4.
Reviewed-by: kvn, never
author | iveresov |
---|---|
date | Fri, 01 Jul 2011 10:37:37 -0700 |
parents | 97b64f73103b |
children | 43f9d800f276 |
comparison
equal
deleted
inserted
replaced
3790:6f6e91603a45 | 3791:2c359f27615c |
---|---|
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 |