diff -r 873fd82b133d -r ed5b982c0b0e src/share/vm/compiler/compileBroker.cpp --- a/src/share/vm/compiler/compileBroker.cpp Fri Jun 24 17:12:13 2016 +0800 +++ b/src/share/vm/compiler/compileBroker.cpp Mon Jun 27 16:08:34 2016 +0800 @@ -22,12 +22,6 @@ * */ -/* - * 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. - */ - #include "precompiled.hpp" #include "classfile/systemDictionary.hpp" #include "classfile/vmSymbols.hpp" @@ -263,12 +257,6 @@ } } -#ifdef MIPS64 -void CompileTask::set_weight() { - assert(FactorOfSizeScheduling >= 0 && FactorOfSizeScheduling <= 100, "FactorOfSizeScheduling should be in [0, 100]"); - _weight = 100 * FactorOfSizeScheduling / (_method_code_size + 1) + 10 * (100 - FactorOfSizeScheduling) * _speed; -} -#endif // ------------------------------------------------------------------ // CompileTask::initialize @@ -284,14 +272,6 @@ _compile_id = compile_id; _method = method(); -#ifdef MIPS64 - _prev_time = os::javaTimeMillis(); - _prev_ic_count = _method->interpreter_invocation_count(); - _prev_bc_count = _method->backedge_count() + _method->get_decay_counter(); - _speed = 10.0; - _method_code_size = _method->code_size() >> 3; - set_weight(); -#endif _method_holder = JNIHandles::make_global(method->method_holder()->klass_holder()); _osr_bci = osr_bci; _is_blocking = is_blocking; @@ -627,13 +607,8 @@ task->set_prev(_last); _last = task; } - ++_size; -#ifdef MIPS64 - _queued_method_size += task->method()->code_size(); -#endif - // Mark the method as being in the compile queue. task->method()->set_queued_for_compilation(); @@ -656,9 +631,6 @@ delete task; } _first = NULL; -#ifdef MIPS64 - _queued_method_size = 0; -#endif } } @@ -740,9 +712,6 @@ _last = task->prev(); } --_size; -#ifdef MIPS64 - _queued_method_size -= task->method()->code_size(); -#endif } // methods in the compile queue need to be marked as used on the stack