hotspot/src/share/vm/runtime/simpleThresholdPolicy.inline.hpp
changeset 33632 038347770a9e
parent 28650 772aaab2582f
child 42650 1f304d0c888b
--- a/hotspot/src/share/vm/runtime/simpleThresholdPolicy.inline.hpp	Tue Nov 03 20:12:51 2015 +0300
+++ b/hotspot/src/share/vm/runtime/simpleThresholdPolicy.inline.hpp	Wed Nov 04 07:23:23 2015 -1000
@@ -68,6 +68,14 @@
       method->is_constant_getter()) {
     return true;
   }
+#if INCLUDE_JVMCI
+  if (UseJVMCICompiler) {
+    if (TieredCompilation && CompileBroker::compiler(CompLevel_full_optimization) != NULL &&
+        CompileBroker::compiler(CompLevel_full_optimization)->is_trivial(method)) {
+      return true;
+    }
+  }
+#endif
   if (method->has_loops() || method->code_size() >= 15) {
     return false;
   }