1.1 --- a/src/share/vm/compiler/compileBroker.cpp Fri Jun 24 17:12:13 2016 +0800 1.2 +++ b/src/share/vm/compiler/compileBroker.cpp Mon Jun 27 16:08:34 2016 +0800 1.3 @@ -22,12 +22,6 @@ 1.4 * 1.5 */ 1.6 1.7 -/* 1.8 - * This file has been modified by Loongson Technology in 2015. These 1.9 - * modifications are Copyright (c) 2015 Loongson Technology, and are made 1.10 - * available on the same license terms set forth above. 1.11 - */ 1.12 - 1.13 #include "precompiled.hpp" 1.14 #include "classfile/systemDictionary.hpp" 1.15 #include "classfile/vmSymbols.hpp" 1.16 @@ -263,12 +257,6 @@ 1.17 } 1.18 } 1.19 1.20 -#ifdef MIPS64 1.21 -void CompileTask::set_weight() { 1.22 - assert(FactorOfSizeScheduling >= 0 && FactorOfSizeScheduling <= 100, "FactorOfSizeScheduling should be in [0, 100]"); 1.23 - _weight = 100 * FactorOfSizeScheduling / (_method_code_size + 1) + 10 * (100 - FactorOfSizeScheduling) * _speed; 1.24 -} 1.25 -#endif 1.26 1.27 // ------------------------------------------------------------------ 1.28 // CompileTask::initialize 1.29 @@ -284,14 +272,6 @@ 1.30 1.31 _compile_id = compile_id; 1.32 _method = method(); 1.33 -#ifdef MIPS64 1.34 - _prev_time = os::javaTimeMillis(); 1.35 - _prev_ic_count = _method->interpreter_invocation_count(); 1.36 - _prev_bc_count = _method->backedge_count() + _method->get_decay_counter(); 1.37 - _speed = 10.0; 1.38 - _method_code_size = _method->code_size() >> 3; 1.39 - set_weight(); 1.40 -#endif 1.41 _method_holder = JNIHandles::make_global(method->method_holder()->klass_holder()); 1.42 _osr_bci = osr_bci; 1.43 _is_blocking = is_blocking; 1.44 @@ -627,13 +607,8 @@ 1.45 task->set_prev(_last); 1.46 _last = task; 1.47 } 1.48 - 1.49 ++_size; 1.50 1.51 -#ifdef MIPS64 1.52 - _queued_method_size += task->method()->code_size(); 1.53 -#endif 1.54 - 1.55 // Mark the method as being in the compile queue. 1.56 task->method()->set_queued_for_compilation(); 1.57 1.58 @@ -656,9 +631,6 @@ 1.59 delete task; 1.60 } 1.61 _first = NULL; 1.62 -#ifdef MIPS64 1.63 - _queued_method_size = 0; 1.64 -#endif 1.65 } 1.66 } 1.67 1.68 @@ -740,9 +712,6 @@ 1.69 _last = task->prev(); 1.70 } 1.71 --_size; 1.72 -#ifdef MIPS64 1.73 - _queued_method_size -= task->method()->code_size(); 1.74 -#endif 1.75 } 1.76 1.77 // methods in the compile queue need to be marked as used on the stack