# HG changeset patch # User neliasso # Date 1413804148 -7200 # Node ID b9c94af14fd094053e95f47da04cfb9a5e651c0b # Parent 9dc314de223d8e47c13da83023298a8cc2c8fee1 8059445: Remove CompilationRepeat Summary: Remove product flag -XX:CompilationRepeat Reviewed-by: kvn, iveresov diff -r 9dc314de223d -r b9c94af14fd0 src/share/vm/c1/c1_globals.hpp --- a/src/share/vm/c1/c1_globals.hpp Wed Oct 01 12:34:38 2014 -0700 +++ b/src/share/vm/c1/c1_globals.hpp Mon Oct 20 13:22:28 2014 +0200 @@ -287,9 +287,6 @@ develop(bool, InstallMethods, true, \ "Install methods at the end of successful compilations") \ \ - product(intx, CompilationRepeat, 0, \ - "Number of times to recompile method before returning result") \ - \ develop(intx, NMethodSizeLimit, (64*K)*wordSize, \ "Maximum size of a compiled method.") \ \ diff -r 9dc314de223d -r b9c94af14fd0 src/share/vm/compiler/compileBroker.cpp --- a/src/share/vm/compiler/compileBroker.cpp Wed Oct 01 12:34:38 2014 -0700 +++ b/src/share/vm/compiler/compileBroker.cpp Mon Oct 20 13:22:28 2014 +0200 @@ -1781,22 +1781,6 @@ if (method()->number_of_breakpoints() == 0) { // Compile the method. if ((UseCompiler || AlwaysCompileLoopMethods) && CompileBroker::should_compile_new_jobs()) { -#ifdef COMPILER1 - // Allow repeating compilations for the purpose of benchmarking - // compile speed. This is not useful for customers. - if (CompilationRepeat != 0) { - int compile_count = CompilationRepeat; - while (compile_count > 0) { - invoke_compiler_on_method(task); - nmethod* nm = method->code(); - if (nm != NULL) { - nm->make_zombie(); - method->clear_code(); - } - compile_count--; - } - } -#endif /* COMPILER1 */ invoke_compiler_on_method(task); } else { // After compilation is disabled, remove remaining methods from queue diff -r 9dc314de223d -r b9c94af14fd0 src/share/vm/runtime/arguments.cpp --- a/src/share/vm/runtime/arguments.cpp Wed Oct 01 12:34:38 2014 -0700 +++ b/src/share/vm/runtime/arguments.cpp Mon Oct 20 13:22:28 2014 +0200 @@ -300,6 +300,7 @@ { "UseStringCache", JDK_Version::jdk(8), JDK_Version::jdk(9) }, { "UseOldInlining", JDK_Version::jdk(9), JDK_Version::jdk(10) }, { "AutoShutdownNMT", JDK_Version::jdk(9), JDK_Version::jdk(10) }, + { "CompilationRepeat", JDK_Version::jdk(8), JDK_Version::jdk(9) }, #ifdef PRODUCT { "DesiredMethodLimit", JDK_Version::jdk_update(7, 2), JDK_Version::jdk(8) },