diff -r f90c822e73f8 -r 2d8a650513c2 src/share/vm/compiler/compileBroker.hpp --- a/src/share/vm/compiler/compileBroker.hpp Wed Apr 27 01:25:04 2016 +0800 +++ b/src/share/vm/compiler/compileBroker.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_COMPILER_COMPILEBROKER_HPP #define SHARE_VM_COMPILER_COMPILEBROKER_HPP @@ -44,12 +50,22 @@ uint _compile_id; Method* _method; jobject _method_holder; +#ifdef MIPS64 + int _method_code_size; +#endif int _osr_bci; bool _is_complete; bool _is_success; bool _is_blocking; int _comp_level; int _num_inlined_bytecodes; +#ifdef MIPS64 + int _prev_ic_count; + int _prev_bc_count; + jlong _prev_time; + double _speed; + int _weight; +#endif nmethodLocker* _code_handle; // holder of eventual result CompileTask* _next, *_prev; @@ -71,6 +87,19 @@ void free(); +#ifdef MIPS64 + int prev_ic_count() const { return _prev_ic_count; } + void set_prev_ic_count(int c) { _prev_ic_count = c; } + int prev_bc_count() const { return _prev_bc_count; } + void set_prev_bc_count(int c) { _prev_bc_count = c; } + jlong prev_time() const { return _prev_time; } + void set_prev_time(jlong t) { _prev_time = t; } + double speed() const { return _speed; } + void set_speed(double s) { _speed = s; }; + int weight() const { return _weight;} + void set_weight(); + void set_weight(int w) { _weight = w;} +#endif int compile_id() const { return _compile_id; } Method* method() const { return _method; } int osr_bci() const { return _osr_bci; } @@ -81,6 +110,9 @@ nmethodLocker* code_handle() const { return _code_handle; } void set_code_handle(nmethodLocker* l) { _code_handle = l; } nmethod* code() const; // _code_handle->code() +#ifdef MIPS64 + int method_code_size() const { return _method_code_size; } +#endif void set_code(nmethod* nm); // _code_handle->set_code(nm) Monitor* lock() const { return _lock; } @@ -189,6 +221,9 @@ CompileTask* _last; int _size; +#ifdef MIPS64 + int _queued_method_size; +#endif public: CompileQueue(const char* name, Monitor* lock) { _name = name; @@ -196,6 +231,9 @@ _first = NULL; _last = NULL; _size = 0; +#ifdef MIPS64 + _queued_method_size = 0; +#endif } const char* name() const { return _name; }