comparison src/share/vm/runtime/compilationPolicy.cpp @ 9080:b84fd7d73702

8007288: Additional WB API for compiler's testing Reviewed-by: kvn, vlivanov
author iignatyev
date Tue, 09 Apr 2013 09:54:17 -0700
parents bd7a7ce2e264
children 89e4d67fdd2a 8df6ddda8090
comparison
equal deleted inserted replaced
9079:f67065f02409 9080:b84fd7d73702
121 if (!AbstractInterpreter::can_be_compiled(m)) { 121 if (!AbstractInterpreter::can_be_compiled(m)) {
122 return false; 122 return false;
123 } 123 }
124 if (comp_level == CompLevel_all) { 124 if (comp_level == CompLevel_all) {
125 return !m->is_not_compilable(CompLevel_simple) && !m->is_not_compilable(CompLevel_full_optimization); 125 return !m->is_not_compilable(CompLevel_simple) && !m->is_not_compilable(CompLevel_full_optimization);
126 } else { 126 } else if (is_compile(comp_level)) {
127 return !m->is_not_compilable(comp_level); 127 return !m->is_not_compilable(comp_level);
128 } 128 }
129 return false;
129 } 130 }
130 131
131 bool CompilationPolicy::is_compilation_enabled() { 132 bool CompilationPolicy::is_compilation_enabled() {
132 // NOTE: CompileBroker::should_compile_new_jobs() checks for UseCompiler 133 // NOTE: CompileBroker::should_compile_new_jobs() checks for UseCompiler
133 return !delay_compilation_during_startup() && CompileBroker::should_compile_new_jobs(); 134 return !delay_compilation_during_startup() && CompileBroker::should_compile_new_jobs();