18 * |
18 * |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 * or visit www.oracle.com if you need additional information or have any |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 * |
22 * |
23 */ |
|
24 |
|
25 /* |
|
26 * This file has been modified by Loongson Technology in 2015. These |
|
27 * modifications are Copyright (c) 2015 Loongson Technology, and are made |
|
28 * available on the same license terms set forth above. |
|
29 */ |
23 */ |
30 |
24 |
31 #ifndef SHARE_VM_RUNTIME_COMPILATIONPOLICY_HPP |
25 #ifndef SHARE_VM_RUNTIME_COMPILATIONPOLICY_HPP |
32 #define SHARE_VM_RUNTIME_COMPILATIONPOLICY_HPP |
26 #define SHARE_VM_RUNTIME_COMPILATIONPOLICY_HPP |
33 |
27 |
114 virtual void initialize(); |
108 virtual void initialize(); |
115 virtual CompileTask* select_task(CompileQueue* compile_queue); |
109 virtual CompileTask* select_task(CompileQueue* compile_queue); |
116 virtual nmethod* event(methodHandle method, methodHandle inlinee, int branch_bci, int bci, CompLevel comp_level, nmethod* nm, JavaThread* thread); |
110 virtual nmethod* event(methodHandle method, methodHandle inlinee, int branch_bci, int bci, CompLevel comp_level, nmethod* nm, JavaThread* thread); |
117 virtual void method_invocation_event(methodHandle m, JavaThread* thread) = 0; |
111 virtual void method_invocation_event(methodHandle m, JavaThread* thread) = 0; |
118 virtual void method_back_branch_event(methodHandle m, int bci, JavaThread* thread) = 0; |
112 virtual void method_back_branch_event(methodHandle m, int bci, JavaThread* thread) = 0; |
119 #ifdef MIPS64 |
|
120 inline bool compare(CompileTask* task_x, CompileTask* task_y); |
|
121 inline void update_speed(jlong t, CompileTask* task); |
|
122 inline bool task_should_be_removed(jlong t, jlong timeout, CompileTask* task); |
|
123 #endif |
|
124 }; |
113 }; |
125 |
114 |
126 class SimpleCompPolicy : public NonTieredCompPolicy { |
115 class SimpleCompPolicy : public NonTieredCompPolicy { |
127 public: |
116 public: |
128 virtual void method_invocation_event(methodHandle m, JavaThread* thread); |
117 virtual void method_invocation_event(methodHandle m, JavaThread* thread); |