Mercurial > hg > graal-jvmci-8
comparison src/share/vm/compiler/compileBroker.cpp @ 20575:b9c94af14fd0
8059445: Remove CompilationRepeat
Summary: Remove product flag -XX:CompilationRepeat
Reviewed-by: kvn, iveresov
author | neliasso |
---|---|
date | Mon, 20 Oct 2014 13:22:28 +0200 |
parents | 966205f0e717 |
children | 41dcdd636080 |
comparison
equal
deleted
inserted
replaced
20574:9dc314de223d | 20575:b9c94af14fd0 |
---|---|
1779 | 1779 |
1780 // Never compile a method if breakpoints are present in it | 1780 // Never compile a method if breakpoints are present in it |
1781 if (method()->number_of_breakpoints() == 0) { | 1781 if (method()->number_of_breakpoints() == 0) { |
1782 // Compile the method. | 1782 // Compile the method. |
1783 if ((UseCompiler || AlwaysCompileLoopMethods) && CompileBroker::should_compile_new_jobs()) { | 1783 if ((UseCompiler || AlwaysCompileLoopMethods) && CompileBroker::should_compile_new_jobs()) { |
1784 #ifdef COMPILER1 | |
1785 // Allow repeating compilations for the purpose of benchmarking | |
1786 // compile speed. This is not useful for customers. | |
1787 if (CompilationRepeat != 0) { | |
1788 int compile_count = CompilationRepeat; | |
1789 while (compile_count > 0) { | |
1790 invoke_compiler_on_method(task); | |
1791 nmethod* nm = method->code(); | |
1792 if (nm != NULL) { | |
1793 nm->make_zombie(); | |
1794 method->clear_code(); | |
1795 } | |
1796 compile_count--; | |
1797 } | |
1798 } | |
1799 #endif /* COMPILER1 */ | |
1800 invoke_compiler_on_method(task); | 1784 invoke_compiler_on_method(task); |
1801 } else { | 1785 } else { |
1802 // After compilation is disabled, remove remaining methods from queue | 1786 // After compilation is disabled, remove remaining methods from queue |
1803 method->clear_queued_for_compilation(); | 1787 method->clear_queued_for_compilation(); |
1804 task->set_failure_reason("compilation is disabled"); | 1788 task->set_failure_reason("compilation is disabled"); |