changeset 5447:546d5fb8cc54

8058583: Remove CompilationRepeat Reviewed-by: neliasso, kvn
author aeriksso
date Wed, 19 Nov 2014 10:22:31 +0100
parents 3ae4d3bcedb8
children aa79052bdf62
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	Mon Jun 23 13:33:23 2014 +0200
+++ b/src/share/vm/c1/c1_globals.hpp	Wed Nov 19 10:22:31 2014 +0100
@@ -269,9 +269,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	Mon Jun 23 13:33:23 2014 +0200
+++ b/src/share/vm/compiler/compileBroker.cpp	Wed Nov 19 10:22:31 2014 +0100
@@ -1594,22 +1594,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	Mon Jun 23 13:33:23 2014 +0200
+++ b/src/share/vm/runtime/arguments.cpp	Wed Nov 19 10:22:31 2014 +0100
@@ -266,6 +266,7 @@
   { "Tier1MaxInlineSize",  JDK_Version::jdk_update(7,40), JDK_Version::jdk(8) },
   { "Tier1LoopOptsCount",  JDK_Version::jdk_update(7,40), JDK_Version::jdk(8) },
   { "UseSpinning",         JDK_Version::jdk_update(7,40), JDK_Version::jdk(8) },
+  { "CompilationRepeat",   JDK_Version::jdk_update(7,80), JDK_Version::jdk(9) },
 #ifdef PRODUCT
   { "DesiredMethodLimit",
                            JDK_Version::jdk_update(7, 2), JDK_Version::jdk(8) },