changeset 7325: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 9dc314de223d
children 5a0b89f8d29a
files src/share/vm/c1/c1_globals.hpp src/share/vm/compiler/compileBroker.cpp src/share/vm/runtime/arguments.cpp
diffstat 3 files changed, 1 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- 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.")                             \
                                                                             \
--- 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
--- 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) },