提交 43dcfca9 编写于 作者: N neliasso

8059445: Remove CompilationRepeat

Summary: Remove product flag -XX:CompilationRepeat
Reviewed-by: kvn, iveresov
上级 71105edc
...@@ -287,9 +287,6 @@ ...@@ -287,9 +287,6 @@
develop(bool, InstallMethods, true, \ develop(bool, InstallMethods, true, \
"Install methods at the end of successful compilations") \ "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, \ develop(intx, NMethodSizeLimit, (64*K)*wordSize, \
"Maximum size of a compiled method.") \ "Maximum size of a compiled method.") \
\ \
......
...@@ -1781,22 +1781,6 @@ void CompileBroker::compiler_thread_loop() { ...@@ -1781,22 +1781,6 @@ void CompileBroker::compiler_thread_loop() {
if (method()->number_of_breakpoints() == 0) { if (method()->number_of_breakpoints() == 0) {
// Compile the method. // Compile the method.
if ((UseCompiler || AlwaysCompileLoopMethods) && CompileBroker::should_compile_new_jobs()) { 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); invoke_compiler_on_method(task);
} else { } else {
// After compilation is disabled, remove remaining methods from queue // After compilation is disabled, remove remaining methods from queue
......
...@@ -300,6 +300,7 @@ static ObsoleteFlag obsolete_jvm_flags[] = { ...@@ -300,6 +300,7 @@ static ObsoleteFlag obsolete_jvm_flags[] = {
{ "UseStringCache", JDK_Version::jdk(8), JDK_Version::jdk(9) }, { "UseStringCache", JDK_Version::jdk(8), JDK_Version::jdk(9) },
{ "UseOldInlining", JDK_Version::jdk(9), JDK_Version::jdk(10) }, { "UseOldInlining", JDK_Version::jdk(9), JDK_Version::jdk(10) },
{ "AutoShutdownNMT", 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 #ifdef PRODUCT
{ "DesiredMethodLimit", { "DesiredMethodLimit",
JDK_Version::jdk_update(7, 2), JDK_Version::jdk(8) }, JDK_Version::jdk_update(7, 2), JDK_Version::jdk(8) },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册