src/share/vm/runtime/compilationPolicy.hpp

changeset 1
2d8a650513c2
parent 0
f90c822e73f8
child 26
ed5b982c0b0e
equal deleted inserted replaced
0:f90c822e73f8 1:2d8a650513c2
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.
23 */ 29 */
24 30
25 #ifndef SHARE_VM_RUNTIME_COMPILATIONPOLICY_HPP 31 #ifndef SHARE_VM_RUNTIME_COMPILATIONPOLICY_HPP
26 #define SHARE_VM_RUNTIME_COMPILATIONPOLICY_HPP 32 #define SHARE_VM_RUNTIME_COMPILATIONPOLICY_HPP
27 33
108 virtual void initialize(); 114 virtual void initialize();
109 virtual CompileTask* select_task(CompileQueue* compile_queue); 115 virtual CompileTask* select_task(CompileQueue* compile_queue);
110 virtual nmethod* event(methodHandle method, methodHandle inlinee, int branch_bci, int bci, CompLevel comp_level, nmethod* nm, JavaThread* thread); 116 virtual nmethod* event(methodHandle method, methodHandle inlinee, int branch_bci, int bci, CompLevel comp_level, nmethod* nm, JavaThread* thread);
111 virtual void method_invocation_event(methodHandle m, JavaThread* thread) = 0; 117 virtual void method_invocation_event(methodHandle m, JavaThread* thread) = 0;
112 virtual void method_back_branch_event(methodHandle m, int bci, JavaThread* thread) = 0; 118 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
113 }; 124 };
114 125
115 class SimpleCompPolicy : public NonTieredCompPolicy { 126 class SimpleCompPolicy : public NonTieredCompPolicy {
116 public: 127 public:
117 virtual void method_invocation_event(methodHandle m, JavaThread* thread); 128 virtual void method_invocation_event(methodHandle m, JavaThread* thread);

mercurial