diff -r f90c822e73f8 -r 2d8a650513c2 src/share/vm/runtime/compilationPolicy.hpp --- a/src/share/vm/runtime/compilationPolicy.hpp Wed Apr 27 01:25:04 2016 +0800 +++ b/src/share/vm/runtime/compilationPolicy.hpp Fri Apr 29 00:06:10 2016 +0800 @@ -22,6 +22,12 @@ * */ +/* + * This file has been modified by Loongson Technology in 2015. These + * modifications are Copyright (c) 2015 Loongson Technology, and are made + * available on the same license terms set forth above. + */ + #ifndef SHARE_VM_RUNTIME_COMPILATIONPOLICY_HPP #define SHARE_VM_RUNTIME_COMPILATIONPOLICY_HPP @@ -110,6 +116,11 @@ virtual nmethod* event(methodHandle method, methodHandle inlinee, int branch_bci, int bci, CompLevel comp_level, nmethod* nm, JavaThread* thread); virtual void method_invocation_event(methodHandle m, JavaThread* thread) = 0; virtual void method_back_branch_event(methodHandle m, int bci, JavaThread* thread) = 0; +#ifdef MIPS64 + inline bool compare(CompileTask* task_x, CompileTask* task_y); + inline void update_speed(jlong t, CompileTask* task); + inline bool task_should_be_removed(jlong t, jlong timeout, CompileTask* task); +#endif }; class SimpleCompPolicy : public NonTieredCompPolicy {