< prev index next >

src/share/vm/runtime/simpleThresholdPolicy.inline.hpp

Print this page

        

*** 66,75 **** --- 66,83 ---- bool SimpleThresholdPolicy::is_trivial(Method* method) { if (method->is_accessor() || method->is_constant_getter()) { return true; } + #if INCLUDE_JVMCI + if (UseJVMCICompiler) { + if (TieredCompilation && CompileBroker::compiler(CompLevel_full_optimization) != NULL && + CompileBroker::compiler(CompLevel_full_optimization)->is_trivial(method)) { + return true; + } + } + #endif if (method->has_loops() || method->code_size() >= 15) { return false; } MethodData* mdo = method->method_data(); if (mdo != NULL && !mdo->would_profile() &&
< prev index next >