comparison src/share/vm/runtime/compilationPolicy.cpp @ 18125:2a69cbe850a8

Reduce diff with upstream
author Gilles Duboscq <duboscq@ssw.jku.at>
date Mon, 20 Oct 2014 19:07:20 +0200
parents 52b4284cb496
children 8f2fb6bec986
comparison
equal deleted inserted replaced
18124:689092d5cf44 18125:2a69cbe850a8
102 bool CompilationPolicy::must_be_compiled(methodHandle m, int comp_level) { 102 bool CompilationPolicy::must_be_compiled(methodHandle m, int comp_level) {
103 // Don't allow Xcomp to cause compiles in replay mode 103 // Don't allow Xcomp to cause compiles in replay mode
104 if (ReplayCompiles) return false; 104 if (ReplayCompiles) return false;
105 105
106 if (m->has_compiled_code()) return false; // already compiled 106 if (m->has_compiled_code()) return false; // already compiled
107
108 if (!can_be_compiled(m, comp_level)) return false; 107 if (!can_be_compiled(m, comp_level)) return false;
109 108
110 return !UseInterpreter || // must compile all methods 109 return !UseInterpreter || // must compile all methods
111 (UseCompiler && AlwaysCompileLoopMethods && m->has_loops() && CompileBroker::should_compile_new_jobs()); // eagerly compile loop methods 110 (UseCompiler && AlwaysCompileLoopMethods && m->has_loops() && CompileBroker::should_compile_new_jobs()); // eagerly compile loop methods
112 } 111 }