changeset 54255:9fff411880fb

8076988: reevaluate trivial method policy Summary: Removed some checks to qualify as trivial Reviewed-by: shade, thartmann, dlong
author ecaspole
date Tue, 08 Jan 2019 10:28:28 -0500
parents 184c51e48260
children 48d09a9f4d2b
files src/hotspot/share/runtime/tieredThresholdPolicy.cpp
diffstat 1 files changed, 0 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/runtime/tieredThresholdPolicy.cpp	Tue Jan 08 11:23:19 2019 +0100
+++ b/src/hotspot/share/runtime/tieredThresholdPolicy.cpp	Tue Jan 08 10:28:28 2019 -0500
@@ -87,22 +87,6 @@
       method->is_constant_getter()) {
     return true;
   }
-#if INCLUDE_JVMCI
-  if (UseJVMCICompiler) {
-    AbstractCompiler* comp = CompileBroker::compiler(CompLevel_full_optimization);
-    if (TieredCompilation && comp != NULL && comp->is_trivial(method)) {
-      return true;
-    }
-  }
-#endif
-  if (method->has_loops() || method->code_size() >= 15) {
-    return false;
-  }
-  MethodData* mdo = method->method_data();
-  if (mdo != NULL && !mdo->would_profile() &&
-      (method->code_size() < 5  || (mdo->num_blocks() < 4))) {
-    return true;
-  }
   return false;
 }